1 | <?php |
||
8 | class ParsedScript |
||
9 | { |
||
10 | /** |
||
11 | * @var ScriptInterface |
||
12 | */ |
||
13 | private $script; |
||
14 | |||
15 | /** |
||
16 | * @var LogicOpNode |
||
17 | */ |
||
18 | private $ast; |
||
19 | |||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private $branches; |
||
|
|||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | private $branchMap; |
||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | private $descriptorMap; |
||
34 | |||
35 | /** |
||
36 | * ParsedScript constructor. |
||
37 | * @param ScriptInterface $script |
||
38 | * @param LogicOpNode $ast |
||
39 | * @param ScriptBranch[] $branches |
||
40 | */ |
||
41 | public function __construct(ScriptInterface $script, LogicOpNode $ast, array $branches) |
||
67 | |||
68 | /** |
||
69 | * @return bool |
||
70 | */ |
||
71 | public function hasMultipleBranches() |
||
75 | |||
76 | /** |
||
77 | * @param array $branchDesc |
||
78 | * @return int |
||
79 | */ |
||
80 | private function getBranchIdx(array $branchDesc) |
||
90 | |||
91 | /** |
||
92 | * @param array $branchDesc |
||
93 | * @return bool|ScriptBranch |
||
94 | */ |
||
95 | public function getBranchByDesc(array $branchDesc) |
||
104 | |||
105 | /** |
||
106 | * @param int $idx |
||
107 | * @return bool|ScriptBranch |
||
108 | */ |
||
109 | public function getBranchByIdx($idx) |
||
117 | |||
118 | /** |
||
119 | * @param $branch |
||
120 | * @return ScriptInterface|bool |
||
121 | */ |
||
122 | public function getMutuallyExclusiveOps($branch) |
||
136 | } |
||
137 |
This check marks private properties in classes that are never used. Those properties can be removed.