@@ -25,7 +25,7 @@ |
||
25 | 25 | $this->from = $from; |
26 | 26 | $this->to = $to; |
27 | 27 | $this->relation = $relation; |
28 | - $this->setter = function (string $property, $value): void { |
|
28 | + $this->setter = function(string $property, $value): void { |
|
29 | 29 | $this->$property = $value; |
30 | 30 | }; |
31 | 31 | } |
@@ -69,8 +69,7 @@ |
||
69 | 69 | string $collectionClass = null |
70 | 70 | ): DefinesObjectMapping { |
71 | 71 | $hydrator = $collectionClass ? |
72 | - VariadicConstructor::forThe($collectionClass) : |
|
73 | - ArrayHydrator::create(); |
|
72 | + VariadicConstructor::forThe($collectionClass) : ArrayHydrator::create(); |
|
74 | 73 | $new = clone $this; |
75 | 74 | $new->relation[$label] = HasMany::in($property, $hydrator); |
76 | 75 | return $new; |