PHP 8.3.31
Preview: ValidationException.php Size: 855 B
//proc/thread-self/root/home/getspomw/itechservicellc.com/vendor/nette/schema/src/Schema/ValidationException.php

<?php

/**
 * This file is part of the Nette Framework (https://nette.org)
 * Copyright (c) 2004 David Grudl (https://davidgrudl.com)
 */

declare(strict_types=1);

namespace Nette\Schema;

use Nette;


/**
 * Validation error.
 */
class ValidationException extends Nette\InvalidStateException
{
	/** @var Message[] */
	private array $messages;


	/**
	 * @param  Message[]  $messages
	 */
	public function __construct(?string $message, array $messages = [])
	{
		parent::__construct($message ?: $messages[0]->toString());
		$this->messages = $messages;
	}


	/**
	 * @return string[]
	 */
	public function getMessages(): array
	{
		$res = [];
		foreach ($this->messages as $message) {
			$res[] = $message->toString();
		}

		return $res;
	}


	/**
	 * @return Message[]
	 */
	public function getMessageObjects(): array
	{
		return $this->messages;
	}
}

Directory Contents

Dirs: 1 × Files: 8

Name Size Perms Modified Actions
Elements DIR
- drwxr-xr-x 2025-11-18 19:24:02
Edit Download
1.04 KB lrw-r--r-- 2025-10-28 20:23:02
Edit Download
222 B lrw-r--r-- 2025-10-28 20:23:02
Edit Download
2.70 KB lrw-r--r-- 2025-10-28 20:23:02
Edit Download
4.86 KB lrw-r--r-- 2025-10-28 20:23:02
Edit Download
2.68 KB lrw-r--r-- 2025-10-28 20:23:02
Edit Download
1.90 KB lrw-r--r-- 2025-10-28 20:23:02
Edit Download
586 B lrw-r--r-- 2025-10-28 20:23:02
Edit Download
855 B lrw-r--r-- 2025-10-28 20:23:02
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).