1 | <?php |
||
16 | class Mapper |
||
17 | { |
||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private $classMap = []; |
||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $aliasMap = []; |
||
26 | |||
27 | /** |
||
28 | * @param array $mappings |
||
29 | * |
||
30 | * @throws MappingException |
||
31 | */ |
||
32 | public function __construct(array $mappings = null) |
||
43 | |||
44 | /** |
||
45 | * @param string|array $mappedClass |
||
46 | * |
||
47 | * @return Mapping |
||
48 | */ |
||
49 | protected function buildMapping($mappedClass) |
||
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | public function getClassMap() |
||
63 | |||
64 | /** |
||
65 | * @param array $array |
||
66 | */ |
||
67 | public function setClassMap(array $array) |
||
71 | } |
||
72 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.