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