1 | <?php |
||
16 | class TextContent extends AbstractFileContent |
||
17 | { |
||
18 | /* |
||
19 | * @var array |
||
20 | */ |
||
21 | private $lines; |
||
22 | |||
23 | /** |
||
24 | * @inheritDoc |
||
25 | */ |
||
26 | public function __construct(Stringy $content, array $lines) |
||
31 | |||
32 | /** |
||
33 | * @return array |
||
34 | */ |
||
35 | 1 | public function getLines() |
|
39 | |||
40 | /** |
||
41 | * @param int $index |
||
42 | * @throws IndexOutOfBoundsException |
||
43 | * @return Line |
||
44 | */ |
||
45 | public function lineAt($index) |
||
52 | |||
53 | /** |
||
54 | * @return Line |
||
55 | */ |
||
56 | public function firstLine() |
||
60 | |||
61 | /** |
||
62 | * @return Line |
||
63 | */ |
||
64 | public function lastLine() |
||
68 | |||
69 | /** |
||
70 | * @return int |
||
71 | */ |
||
72 | public function count() |
||
76 | } |
||
77 |