@@ -32,6 +32,9 @@ discard block |
||
32 | 32 | */ |
33 | 33 | protected $reflect; |
34 | 34 | |
35 | + /** |
|
36 | + * @param \Spaark\CompositeUtils\Traits\PropertyAccessTrait $object |
|
37 | + */ |
|
35 | 38 | public function __construct($object, ReflectionComposite $reflect) |
36 | 39 | { |
37 | 40 | parent::__construct($object); |
@@ -127,6 +130,10 @@ discard block |
||
127 | 130 | } |
128 | 131 | } |
129 | 132 | |
133 | + /** |
|
134 | + * @param string $name |
|
135 | + * @param \Closure $cast |
|
136 | + */ |
|
130 | 137 | private function setScalarValue($property, $value, $name, $cast) |
131 | 138 | { |
132 | 139 | $method = '__to' . $name; |