for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Remorhaz\JSON\Path\Processor\Mutator\Exception;
use LogicException;
use Remorhaz\JSON\Data\Path\PathInterface;
use Throwable;
final class ReplaceAtNestedPathsException extends LogicException implements ExceptionInterface
{
private $parentPath;
private $nestedPath;
public function __construct(PathInterface $parentPath, PathInterface $nestedPath, Throwable $previous = null)
$this->parentPath = $parentPath;
$this->nestedPath = $nestedPath;
parent::__construct("Attempt of replacing value at nested paths", 0, $previous);
}
public function getParentPath(): PathInterface
return $this->parentPath;
public function getNestedPath(): PathInterface
return $this->nestedPath;