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\Result;
use Remorhaz\JSON\Data\Path\PathInterface;
use Remorhaz\JSON\Path\Processor\PathEncoderInterface;
final class ExistingSelectOnePathResult implements SelectOnePathResultInterface
{
private $path;
private $encoder;
public function exists(): bool
return true;
}
public function __construct(PathEncoderInterface $encoder, PathInterface $path)
$this->encoder = $encoder;
$this->path = $path;
public function get(): PathInterface
return $this->path;
public function encode(): string
return $this
->encoder
->encodePath($this->path);