| 1 | <?php |
||
| 9 | class Text implements Body, Footprintable |
||
| 10 | { |
||
| 11 | private |
||
| 12 | $content; |
||
|
1 ignored issue
–
show
|
|||
| 13 | |||
| 14 | public function __construct($text) |
||
| 18 | |||
| 19 | public function format() |
||
| 23 | |||
| 24 | public function footprint() |
||
| 28 | |||
| 29 | public function changeText($text) |
||
| 38 | |||
| 39 | public function append($text) |
||
| 50 | |||
| 51 | public function getContentType() |
||
| 55 | |||
| 56 | public function __toString() |
||
| 60 | |||
| 61 | public function decode() |
||
| 65 | } |
||
| 66 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.