Total Complexity | 3 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | class TextContent extends ArrayIterator |
||
26 | { |
||
27 | /** |
||
28 | * TextContent::replace |
||
29 | * |
||
30 | * @param string $value |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function replace($value) |
||
35 | { |
||
36 | return $this->exchangeArray([ |
||
37 | $value, |
||
38 | ]); |
||
39 | } |
||
40 | |||
41 | // ------------------------------------------------------------------------ |
||
42 | |||
43 | /** |
||
44 | * TextContent::item |
||
45 | * |
||
46 | * @param string $index |
||
47 | * |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function item($index) |
||
53 | } |
||
54 | |||
55 | // ------------------------------------------------------------------------ |
||
56 | |||
57 | /** |
||
58 | * TextContent::prepend |
||
59 | * |
||
60 | * @param string $value |
||
61 | */ |
||
62 | public function prepend($value) |
||
65 | } |
||
66 | } |