1 | <?php |
||
20 | class ClassCache |
||
21 | { |
||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private static $runtimePath = null; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $className = ''; |
||
31 | |||
32 | /** |
||
33 | * Root path of storage |
||
34 | * @var string |
||
35 | */ |
||
36 | private $storagePath = ''; |
||
37 | |||
38 | /** |
||
39 | * Base path for current meta class |
||
40 | * @var string |
||
41 | */ |
||
42 | private $basePath = ''; |
||
43 | |||
44 | /** |
||
45 | * @var string |
||
46 | */ |
||
47 | private $metaClass = ''; |
||
48 | |||
49 | /** |
||
50 | * @var NsCache |
||
51 | */ |
||
52 | private $nsCache; |
||
53 | |||
54 | /** |
||
55 | * @var Addendum |
||
56 | */ |
||
57 | private $addendum; |
||
58 | |||
59 | /** |
||
60 | * @var Writer |
||
61 | */ |
||
62 | private $writer; |
||
63 | |||
64 | /** |
||
65 | * @var Checker |
||
66 | */ |
||
67 | private $checker; |
||
68 | |||
69 | /** |
||
70 | * @var Reader |
||
71 | */ |
||
72 | private $reader; |
||
73 | |||
74 | /** |
||
75 | * @var Cleaner |
||
76 | */ |
||
77 | private $cleaner; |
||
78 | |||
79 | /** |
||
80 | * |
||
81 | * @param string $metaClass |
||
82 | * @param AnnotatedInterface|object|string $component |
||
83 | * @param MetaOptions|Addendum $options |
||
84 | */ |
||
85 | 1 | public function __construct(string $metaClass, $component, $options = null) |
|
105 | |||
106 | 37 | public function get($className) |
|
120 | |||
121 | 30 | public function set($className, $data): bool |
|
126 | |||
127 | 37 | public function setOptions(MetaOptions $options = null) |
|
139 | |||
140 | 37 | private function getInstanceId(MetaOptions $options = null) |
|
160 | } |
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.