JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "MissingNodeValue.php"
Full Path: /home/palsarh/web/palsarh.in/public_html/vendor/cuyz/valinor/src/Mapper/Tree/Exception/MissingNodeValue.php
File size: 864 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;
use CuyZ\Valinor\Mapper\Tree\Message\Message;
use CuyZ\Valinor\Type\ScalarType;
use CuyZ\Valinor\Type\Type;
/** @internal */
final class MissingNodeValue implements ErrorMessage, HasCode
{
private string $body = 'Cannot be empty and must be filled with a value matching {expected_signature}.';
private string $code = 'missing_value';
public static function from(Type $type): Message
{
if ($type instanceof ScalarType) {
return $type->errorMessage();
}
return new self();
}
public function body(): string
{
return $this->body;
}
public function code(): string
{
return $this->code;
}
}