@@ 92-106 (lines=15) @@ | ||
89 | return $data; |
|
90 | } |
|
91 | ||
92 | public function assertValue( |
|
93 | MappingInterface $arrayMapping, |
|
94 | HydrationContextInterface $context, |
|
95 | array $dataFromAdditionalColumns, |
|
96 | $actualValue |
|
97 | ): void { |
|
98 | if ($arrayMapping instanceof ArrayMappingInterface) { |
|
99 | if (!is_array($actualValue) && !is_null($actualValue)) { |
|
100 | throw FailedRDMAssertionException::expectedArray( |
|
101 | $actualValue, |
|
102 | $arrayMapping->describeOrigin() |
|
103 | ); |
|
104 | } |
|
105 | } |
|
106 | } |
|
107 | ||
108 | } |
|
109 |
@@ 114-128 (lines=15) @@ | ||
111 | return $data; |
|
112 | } |
|
113 | ||
114 | public function assertValue( |
|
115 | MappingInterface $listMapping, |
|
116 | HydrationContextInterface $context, |
|
117 | array $dataFromAdditionalColumns, |
|
118 | $actualValue |
|
119 | ): void { |
|
120 | if ($listMapping instanceof ListMappingInterface) { |
|
121 | if (!is_array($actualValue) && !is_null($actualValue)) { |
|
122 | throw FailedRDMAssertionException::expectedArray( |
|
123 | $actualValue, |
|
124 | $listMapping->describeOrigin() |
|
125 | ); |
|
126 | } |
|
127 | } |
|
128 | } |
|
129 | ||
130 | } |
|
131 |