1 | <?php |
||
24 | class Factory |
||
25 | { |
||
26 | /** |
||
27 | * Config factory method. |
||
28 | * |
||
29 | * @param string $path |
||
30 | * @return \sebastianfeldmann\CaptainHook\Config |
||
31 | */ |
||
32 | 12 | public static function create($path = null) |
|
38 | |||
39 | /** |
||
40 | * Create a CaptainHook configuration. |
||
41 | * |
||
42 | * @param string $path |
||
43 | * @return \sebastianfeldmann\CaptainHook\Config |
||
44 | */ |
||
45 | 12 | public function createConfig($path = null) |
|
58 | |||
59 | /** |
||
60 | * Initialize the configuration with data load from config file. |
||
61 | * |
||
62 | * @param \sebastianfeldmann\CaptainHook\Config $config |
||
63 | * @param array $json |
||
64 | */ |
||
65 | 8 | protected function configure(Config $config, array $json) |
|
71 | |||
72 | /** |
||
73 | * Setup a hook configuration by json data. |
||
74 | * |
||
75 | * @param \sebastianfeldmann\CaptainHook\Config\Hook $config |
||
76 | * @param array $json |
||
77 | */ |
||
78 | 8 | protected function configureHook(Config\Hook $config, array $json) |
|
86 | } |
||
87 |
This check looks at variables that 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.