@@ -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; |
@@ -68,8 +68,7 @@ |
||
| 68 | 68 | string $collectionClass = null |
| 69 | 69 | ): LoadsWhenTriggered { |
| 70 | 70 | $hydrator = $collectionClass ? |
| 71 | - VariadicConstructor::forThe($collectionClass) : |
|
| 72 | - ArrayHydrator::create(); |
|
| 71 | + VariadicConstructor::forThe($collectionClass) : ArrayHydrator::create(); |
|
| 73 | 72 | $new = clone $this; |
| 74 | 73 | $new->relation[$label] = HasMany::in($property, $hydrator); |
| 75 | 74 | return $new; |
@@ -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; |