| 1 | <?php |
||
| 8 | class UnitCollection extends ArrayList { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * Retrieves a token at the given index |
||
| 12 | * |
||
| 13 | * @param int $index the given index |
||
| 14 | * @return Unit |
||
| 15 | */ |
||
| 16 | 3 | public function get($index) { |
|
| 19 | |||
| 20 | /** |
||
| 21 | * Searches for blocks that start with a given token and returns it or null, if none is found |
||
| 22 | * |
||
| 23 | * @param Token $token |
||
| 24 | * @return Unit the found block or null |
||
| 25 | */ |
||
| 26 | 2 | public function findUnitByStart(Token $token) { |
|
| 35 | |||
| 36 | } |
||
| 37 |