1 | <?php |
||
8 | class TextFile extends File implements TraversableFileInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var ArrayObjectLine |
||
12 | */ |
||
13 | private $lines; |
||
14 | |||
15 | /** |
||
16 | * @inheritDoc |
||
17 | */ |
||
18 | public function __construct($path, $content = '') |
||
23 | |||
24 | /** |
||
25 | * @param string $content |
||
26 | */ |
||
27 | private function readLines(string $content) |
||
33 | |||
34 | public function getRawContent(): string |
||
38 | |||
39 | public function setRawContent(string $content) |
||
44 | |||
45 | /** |
||
46 | * @return \ArrayIterator |
||
47 | */ |
||
48 | public function getIterator() |
||
52 | |||
53 | /** |
||
54 | * @param mixed $offset |
||
55 | * @return bool |
||
56 | */ |
||
57 | public function offsetExists($offset) |
||
61 | |||
62 | /** |
||
63 | * @param mixed $offset |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function offsetGet($offset) |
||
70 | |||
71 | /** |
||
72 | * @param mixed $offset |
||
73 | * @param mixed $value |
||
74 | */ |
||
75 | public function offsetSet($offset, $value) |
||
79 | |||
80 | /** |
||
81 | * @param mixed $offset |
||
82 | */ |
||
83 | public function offsetUnset($offset) |
||
87 | |||
88 | /** |
||
89 | * @return int |
||
90 | */ |
||
91 | public function count() |
||
95 | } |
||
96 |