for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Remorhaz\JSON\Data\Walker\Exception;
use LogicException;
use Throwable;
final class UnexpectedEntityException extends LogicException implements ExceptionInterface
{
private $entity;
public function __construct($entity, Throwable $previous = null)
$this->entity = $entity;
parent::__construct("Invalid entity", 0, $previous);
}
public function getEntity()
return $this->entity;