1 | <?php |
||
5 | class UseStatementBlock |
||
6 | { |
||
7 | /** |
||
8 | * @var UseStatement[] |
||
9 | */ |
||
10 | private $statements = array(); |
||
11 | |||
12 | /** |
||
13 | * @var int[] |
||
14 | */ |
||
15 | private $lineNumbers = array(); |
||
16 | |||
17 | /** |
||
18 | * @param int $lineNumber |
||
19 | * @param string $statementContent |
||
20 | * |
||
21 | * @return $this |
||
22 | */ |
||
23 | public function addStatement($lineNumber, $statementContent) |
||
30 | |||
31 | /** |
||
32 | * @return UseStatement[] |
||
33 | */ |
||
34 | public function getStatements() |
||
38 | |||
39 | public function getSortedStatements() |
||
45 | |||
46 | /** |
||
47 | * @return int[] |
||
48 | */ |
||
49 | public function getLineNumbers() |
||
53 | |||
54 | /** |
||
55 | * @return int[] |
||
56 | */ |
||
57 | public function getSortedLineNumbers() |
||
63 | |||
64 | /** |
||
65 | * @return int |
||
66 | */ |
||
67 | public function count() |
||
71 | } |
||
72 |