/** * @param Type\Method $method * @param object $object * @param mixed $value * * @return Deserialize */ private function processDeserializeTypeMethod(Type\Method $method, $object, $value) : self { $object->{$method->setter()}($value); return $this; }
/** * @param Type\Method $method * @param object $object * @param mixed[] $data * @param string $attribute * * @return mixed[] */ private function processSerializeTypeMethod(Type\Method $method, $object, array $data, string $attribute) : array { $value = $object->{$method->getter()}(); if ($this->checkNullForAttribute($value, $attribute) === false) { $data[$attribute] = $value; } return $data; }