| 1 | <?php |
||
| 8 | class ScriptBranch |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var ScriptInterface |
||
| 12 | */ |
||
| 13 | private $fullScript; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var array|\array[] |
||
| 17 | */ |
||
| 18 | private $scriptSections; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var array|\bool[] |
||
| 22 | */ |
||
| 23 | private $branch; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * ScriptBranch constructor. |
||
| 27 | * @param ScriptInterface $fullScript |
||
| 28 | * @param array $logicalPath |
||
| 29 | * @param array $scriptSections |
||
| 30 | */ |
||
| 31 | public function __construct(ScriptInterface $fullScript, array $logicalPath, array $scriptSections) |
||
| 32 | 154 | { |
|
| 33 | $this->fullScript = $fullScript; |
||
| 34 | 154 | $this->branch = $logicalPath; |
|
| 35 | 154 | $this->scriptSections = $scriptSections; |
|
| 36 | 154 | } |
|
| 37 | 154 | ||
| 38 | /** |
||
| 39 | * @return array|\bool[] |
||
| 40 | */ |
||
| 41 | public function getPath() |
||
| 42 | { |
||
| 43 | return $this->branch; |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return array|\array[] |
||
| 48 | */ |
||
| 49 | public function getScriptSections() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | public function getOps() |
||
| 65 | |||
| 66 | 18 | /** |
|
| 67 | * @return array |
||
| 68 | 18 | */ |
|
| 69 | 18 | public function __debugInfo() |
|
| 86 | } |
||
| 87 |