JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "SourceMustBeIterable.php"
Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/cuyz/valinor/src/Mapper/Tree/Exception/SourceMustBeIterable.php
File size: 808 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
declare(strict_types=1);
namespace CuyZ\Valinor\Mapper\Tree\Exception;
use CuyZ\Valinor\Mapper\Tree\Message\ErrorMessage;
use CuyZ\Valinor\Mapper\Tree\Message\HasCode;
/** @internal */
final class SourceMustBeIterable implements ErrorMessage, HasCode
{
private string $body;
private string $code = 'value_is_not_iterable';
public function __construct(mixed $value)
{
if ($value === null) {
$this->body = 'Cannot be empty and must be filled with a value matching {expected_signature}.';
} else {
$this->body = 'Value {source_value} does not match {expected_signature}.';
}
}
public function body(): string
{
return $this->body;
}
public function code(): string
{
return $this->code;
}
}