Example #1
0
 /**
  * @param PointerInterface $pointer
  * @param ValueInterface   $value
  *
  * @return ValueInterface|null
  */
 public function resolve(PointerInterface $pointer, ValueInterface $value)
 {
     if (!$pointer->hasAtoms()) {
         return $value;
     }
     $atoms = $pointer->atoms();
     return $this->resolveAtoms($pointer, $atoms, $value);
 }
Example #2
0
 /**
  * @param PointerInterface $pointer
  * @param Exception|null   $previous
  */
 public function __construct(PointerInterface $pointer, Exception $previous = null)
 {
     $this->pointer = $pointer;
     parent::__construct(sprintf('The pointer %s has no parent.', var_export($pointer->string(), true)), 0, $previous);
 }
 /**
  * @param PointerInterface $pointer
  * @param Exception|null   $previous
  */
 public function __construct(PointerInterface $pointer, Exception $previous = null)
 {
     $this->pointer = $pointer;
     parent::__construct(sprintf('Mapping already exists at pointer %s.', var_export($pointer->string(), true)), 0, $previous);
 }
 /**
  * @param PointerInterface $pointer
  * @param Exception|null   $previous
  */
 public function __construct(PointerInterface $pointer, Exception $previous = null)
 {
     $this->pointer = $pointer;
     parent::__construct(sprintf("No value defined for pointer %s.", var_export($pointer->string(), true)), 0, $previous);
 }