1 | <?php |
||
7 | class Chunks implements \ArrayAccess, \Countable, \Iterator |
||
8 | { |
||
9 | private $strobj; |
||
10 | private $length; |
||
11 | private $ending; |
||
12 | private $index = 0; |
||
13 | |||
14 | public function __construct(StrObj $strobj, $length = 76, $ending = "\r\n") |
||
20 | |||
21 | public function count() |
||
25 | |||
26 | public function current() |
||
30 | |||
31 | public function key() |
||
35 | |||
36 | public function next() |
||
40 | |||
41 | public function rewind() |
||
45 | |||
46 | public function valid() |
||
50 | |||
51 | public function offsetExists($index) |
||
56 | |||
57 | public function offsetGet($index) |
||
65 | |||
66 | public function offsetSet($offset, $value) |
||
70 | |||
71 | public function offsetUnset($offset) |
||
75 | } |
||
76 |