@@ -25,8 +25,14 @@ |
||
25 | 25 | */ |
26 | 26 | public function getFieldMappings(): array; |
27 | 27 | |
28 | + /** |
|
29 | + * @return null|CallDefinitionInterface |
|
30 | + */ |
|
28 | 31 | public function getFactory(): ?CallDefinitionInterface; |
29 | 32 | |
33 | + /** |
|
34 | + * @return null|CallDefinitionInterface |
|
35 | + */ |
|
30 | 36 | public function getSerializer(): ?CallDefinitionInterface; |
31 | 37 | |
32 | 38 | } |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Addiks\RDMBundle\Mapping\ArrayMapping; |
15 | 15 | use Addiks\RDMBundle\Mapping\MappingInterface; |
16 | 16 | use Doctrine\DBAL\Schema\Column; |
17 | -use InvalidArgumentException; |
|
18 | 17 | |
19 | 18 | final class ArrayMappingTest extends TestCase |
20 | 19 | { |
@@ -59,6 +59,9 @@ |
||
59 | 59 | return [$this->scalarValue, $this->lorem, $this->dolor]; |
60 | 60 | } |
61 | 61 | |
62 | + /** |
|
63 | + * @param string $amet |
|
64 | + */ |
|
62 | 65 | public function setAmet($amet) |
63 | 66 | { |
64 | 67 | $this->amet = $amet; |
@@ -111,7 +111,7 @@ |
||
111 | 111 | * @param object $entity |
112 | 112 | * @param array<scalar> $dataFromAdditionalColumns |
113 | 113 | * |
114 | - * @return array<mixed> |
|
114 | + * @return callable |
|
115 | 115 | */ |
116 | 116 | private function resolveArguments( |
117 | 117 | array $argumentMappings, |
@@ -86,7 +86,8 @@ |
||
86 | 86 | * |
87 | 87 | * @return object|string |
88 | 88 | */ |
89 | - private function resolveCallee(string $objectReference, $entity) { |
|
89 | + private function resolveCallee(string $objectReference, $entity) |
|
90 | + { |
|
90 | 91 | /** @var object|string $callee */ |
91 | 92 | $callee = null; |
92 | 93 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | 'bar' => new ServiceMapping('other_service', false, "in file '{$mappingFilePath}'"), |
65 | 65 | 'baz' => new ChoiceMapping('baz_column', [ |
66 | 66 | 'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"), |
67 | - 'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"), |
|
67 | + 'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"), |
|
68 | 68 | ], "in file '{$mappingFilePath}'"), |
69 | 69 | 'faz' => new ChoiceMapping(new Column("faz_column", Type::getType('string'), ['notnull' => true]), [ |
70 | 70 | 'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"), |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | new CallDefinition("createValueObject", "@value_object.factory", [ |
130 | 130 | new ChoiceMapping('baz_column', [ |
131 | 131 | 'lorem' => new ServiceMapping("lorem_service", false, "in file '{$mappingFilePath}'"), |
132 | - 'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"), |
|
132 | + 'ipsum' => new ServiceMapping("ipsum_service", true, "in file '{$mappingFilePath}'"), |
|
133 | 133 | ], "in file '{$mappingFilePath}'") |
134 | 134 | ]) |
135 | 135 | ), |