| 1 | <?php  | 
            ||
| 9 | class Text implements Body, Footprintable  | 
            ||
| 10 | { | 
            ||
| 11 | private  | 
            ||
| 12 | $content;  | 
            ||
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 13 | |||
| 14 | 11 | public function __construct($text)  | 
            |
| 18 | |||
| 19 | 9 | public function format()  | 
            |
| 23 | |||
| 24 | 1 | public function footprint()  | 
            |
| 28 | |||
| 29 | 11 | public function changeText($text)  | 
            |
| 38 | |||
| 39 | 2 | public function append($text)  | 
            |
| 50 | |||
| 51 | 3 | public function getContentType()  | 
            |
| 55 | |||
| 56 | 2 | public function __toString()  | 
            |
| 60 | |||
| 61 | 1 | 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.