1 | <?php |
||
6 | final class ReflectionHydrator |
||
7 | { |
||
8 | private $class; |
||
9 | private $objects; |
||
10 | |||
11 | 2 | public function __construct($class, array $objects) |
|
12 | { |
||
13 | 2 | if(false === class_exists($class)) { |
|
14 | 1 | throw new \InvalidArgumentException(sprintf('Unknown hydration class %s!', $class)); |
|
15 | } |
||
16 | |||
17 | 1 | $this->class = $class; |
|
18 | 1 | $this->objects = $objects; |
|
19 | 1 | } |
|
20 | |||
21 | 1 | public function __invoke(array $data, HydratorContainerInterface $hydrators) |
|
38 | |||
39 | 1 | private function computeValue($name, $data, HydratorContainerInterface $hydrators) |
|
58 | } |
||
59 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.