| 1 | <?php |
||
| 9 | class Text implements Body, Footprintable |
||
| 10 | { |
||
| 11 | private |
||
| 12 | $content; |
||
|
1 ignored issue
–
show
|
|||
| 13 | |||
| 14 | 12 | public function __construct($text = '') |
|
| 18 | |||
| 19 | 5 | public function inOriginalFormat() |
|
| 23 | |||
| 24 | 9 | public function asTransported() |
|
| 28 | |||
| 29 | 3 | public function getContentType() |
|
| 33 | |||
| 34 | 2 | public function __toString() |
|
| 38 | |||
| 39 | 1 | public function footprint() |
|
| 43 | |||
| 44 | 12 | public function changeText($text) |
|
| 48 | |||
| 49 | 2 | public function append(...$text) |
|
| 56 | } |
||
| 57 |
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.