/** * @param string $from * @param string $path */ public function __construct($from, $path) { parent::__construct($path); if (is_string($from)) { $from = new JsonPointer($from); } $this->from = $from; }
/** * @param string $path * @param mixed $value */ public function __construct($path, $value) { parent::__construct($path); $this->value = $value; }