@@ -20,6 +20,9 @@ discard block |
||
20 | 20 | */ |
21 | 21 | protected $reflect; |
22 | 22 | |
23 | + /** |
|
24 | + * @param \Spaark\Composite\Traits\PropertyAccessTrait $object |
|
25 | + */ |
|
23 | 26 | public function __construct($object, ReflectionComposite $reflect) |
24 | 27 | { |
25 | 28 | parent::__construct($object); |
@@ -115,6 +118,10 @@ discard block |
||
115 | 118 | } |
116 | 119 | } |
117 | 120 | |
121 | + /** |
|
122 | + * @param string $name |
|
123 | + * @param \Closure $cast |
|
124 | + */ |
|
118 | 125 | private function setScalarValue($property, $value, $name, $cast) |
119 | 126 | { |
120 | 127 | $method = '__to' . $name; |