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\Event\Exception;
use LogicException;
use Remorhaz\JSON\Data\Value\DataAwareInterface;
use Throwable;
final class InvalidScalarDataException extends LogicException implements ExceptionInterface, DataAwareInterface
{
private $data;
public function __construct($data, Throwable $previous = null)
$this->data = $data;
parent::__construct("Invalid scalar data", 0, $previous);
}
public function getData()
return $this->data;