for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Remorhaz\JSON\Patch\Query\Exception;
use Remorhaz\JSON\Data\Value\NodeValueInterface;
use Throwable;
use UnexpectedValueException;
final class InvalidPatchException extends UnexpectedValueException implements ExceptionInterface
{
private $patch;
public function __construct(NodeValueInterface $patch, Throwable $previous = null)
$this->patch = $patch;
parent::__construct("Patch must be an array", 0, $previous);
}
public function getPatch(): NodeValueInterface
return $this->patch;