@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $this->newEntities = $newEntities; |
33 | 33 | } |
34 | 34 | |
35 | - public static function for($entity, Map $identityMap, object ...$newEntities): self |
|
35 | + public static function for ($entity, Map $identityMap, object ...$newEntities): self |
|
36 | 36 | { |
37 | 37 | return new self( |
38 | 38 | $entity, |
@@ -121,8 +121,7 @@ discard block |
||
121 | 121 | $new = clone $this; |
122 | 122 | $new->value = $property->getValue($this->value); |
123 | 123 | $new->name = $this->isTheOwner() ? |
124 | - $this->name->forReflected($property) : |
|
125 | - $this->name->for($this->value)->forReflected($property); |
|
124 | + $this->name->forReflected($property) : $this->name->for($this->value)->forReflected($property); |
|
126 | 125 | return $new; |
127 | 126 | } |
128 | 127 | } |
@@ -132,7 +132,7 @@ |
||
132 | 132 | ): RepresentsEntity { |
133 | 133 | return EntityState::ofThe(classOfThe($entity), $id, PropertyStates::list( |
134 | 134 | ...$this->extractor->extract( |
135 | - ExtractionRequest::for($entity, $map, ...$newEntities) |
|
135 | + ExtractionRequest::for ($entity, $map, ...$newEntities) |
|
136 | 136 | ) |
137 | 137 | )); |
138 | 138 | } |
@@ -132,8 +132,9 @@ |
||
132 | 132 | ): RepresentsEntity { |
133 | 133 | return EntityState::ofThe(classOfThe($entity), $id, PropertyStates::list( |
134 | 134 | ...$this->extractor->extract( |
135 | - ExtractionRequest::for($entity, $map, ...$newEntities) |
|
136 | - ) |
|
135 | + ExtractionRequest::for($entity, $map, ...$newEntities) { |
|
136 | + ) |
|
137 | 137 | )); |
138 | + } |
|
138 | 139 | } |
139 | 140 | } |