Example #1
0
 /**
  * @param \stdClass $operation
  *
  * @throws \Rs\Json\Patch\InvalidOperationException
  * @throws \RuntimeException
  */
 public function __construct(\stdClass $operation)
 {
     $this->assertMandatories($operation);
     parent::__construct('move', $operation);
     $this->from = $operation->from;
 }
Example #2
0
 /**
  * @param \stdClass $operation
  *
  * @throws \Rs\Json\Patch\InvalidOperationException
  * @throws \RuntimeException
  */
 public function __construct(\stdClass $operation)
 {
     $this->assertMandatories($operation);
     parent::__construct('replace', $operation);
 }