Exemplo n.º 1
0
 /**
  * @param Type\Object $objectType
  * @param object $object
  * @param mixed $value
  *
  * @return Deserialize
  */
 private function processDeserializeTypeObject(Type\Object $objectType, $object, $value) : self
 {
     $object->{$objectType->setter()}($this->setObjectForClass($objectType->className(), $value));
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @param Type\Object $objectType
  * @param object $object
  * @param mixed[] $data
  * @param string $attribute
  *
  * @return mixed[]
  */
 private function processSerializeTypeObject(Type\Object $objectType, $object, array $data, string $attribute) : array
 {
     return $this->setArrayAndCheckNull($data, $object->{$objectType->getter()}(), $attribute);
 }