@@ -182,6 +182,7 @@ discard block |
||
| 182 | 182 | |
| 183 | 183 | /** |
| 184 | 184 | * Initializes the property map. |
| 185 | + * @param string $entityType |
|
| 185 | 186 | */ |
| 186 | 187 | protected function initPropertyMap($entityType) { |
| 187 | 188 | $this->propertyMaps[$entityType] = new Map(); |
@@ -191,12 +192,20 @@ discard block |
||
| 191 | 192 | $transform = $args[2][0]; |
| 192 | 193 | $reverse = $args[2][1]; |
| 193 | 194 | $args[2] = new Callback( |
| 195 | + |
|
| 196 | + /** |
|
| 197 | + * @param string $value |
|
| 198 | + */ |
|
| 194 | 199 | function($value, $context) use ($entityManager, $transform) { |
| 195 | 200 | if ($entityManager->isEmptyValue($value)) { |
| 196 | 201 | return $value; |
| 197 | 202 | } |
| 198 | 203 | return call_user_func_array($transform, array($value, $context, $entityManager)); |
| 199 | 204 | }, |
| 205 | + |
|
| 206 | + /** |
|
| 207 | + * @param string $value |
|
| 208 | + */ |
|
| 200 | 209 | function($value, $context) use ($entityManager, $reverse) { |
| 201 | 210 | if ($entityManager->isEmptyValue($value)) { |
| 202 | 211 | return $value; |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | |
| 7 | 7 | namespace TheSportsDb\Entity\Factory; |
| 8 | 8 | |
| 9 | -use FastNorth\PropertyMapper\MapperInterface; |
|
| 10 | 9 | use TheSportsDb\Entity\EntityInterface; |
| 11 | 10 | use TheSportsDb\Entity\EntityManagerConsumerTrait; |
| 12 | 11 | use TheSportsDb\Entity\EntityManagerInterface; |