Esempio n. 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;
 }
Esempio n. 2
0
 /**
  * @param \stdClass $operation
  *
  * @throws \Rs\Json\Patch\InvalidOperationException
  * @throws \RuntimeException
  */
 public function __construct(\stdClass $operation)
 {
     $this->assertMandatories($operation);
     parent::__construct('replace', $operation);
 }