| 1 | <?php |
||
| 8 | class Text implements Body |
||
| 9 | { |
||
| 10 | private |
||
| 11 | $content; |
||
|
1 ignored issue
–
show
|
|||
| 12 | |||
| 13 | public function __construct($text) |
||
| 17 | |||
| 18 | public function format() |
||
| 22 | |||
| 23 | public function footprint() |
||
| 27 | |||
| 28 | public function changeText($text) |
||
| 37 | |||
| 38 | public function append($text) |
||
| 49 | |||
| 50 | public function getContentType() |
||
| 54 | |||
| 55 | public function __toString() |
||
| 59 | |||
| 60 | public function decode() |
||
| 64 | } |
||
| 65 |
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.