1 | <?php |
||
9 | class Source extends ExtendableConfigurationContainer |
||
10 | { |
||
11 | /** |
||
12 | * Create a source with the right class |
||
13 | * |
||
14 | * @param string $name The source name |
||
15 | * @param array $data |
||
16 | * @param ConfigurationManager $manager |
||
17 | * @param Source $parent |
||
18 | * @throws \LogicException |
||
19 | * @return Cloned|Upload |
||
20 | */ |
||
21 | 135 | public static function make($name, array $data, ConfigurationManager $manager, Source $parent = null) |
|
37 | |||
38 | 135 | protected static function findStrategy($name, $data, ConfigurationManager $manager, Source $parent = null) |
|
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 48 | public function getContainerType() |
|
62 | |||
63 | 12 | public function getStrategy() |
|
67 | |||
68 | /** |
||
69 | * @throws \LogicException |
||
70 | * @return mixed |
||
71 | */ |
||
72 | 60 | public function getPath() |
|
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 27 | public function checkValidity() |
|
86 | } |
||
87 |
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.