1 | <?php |
||
8 | class Binary implements Body |
||
9 | { |
||
10 | private |
||
11 | $body; |
||
1 ignored issue
–
show
|
|||
12 | |||
13 | 1 | public function __construct($content) |
|
17 | |||
18 | public function format() |
||
22 | |||
23 | public function footprint() |
||
27 | |||
28 | 1 | public function changeContent($content) |
|
32 | |||
33 | 1 | public function getContentType() |
|
37 | |||
38 | 1 | public function __toString() |
|
45 | |||
46 | public function decode() |
||
50 | } |
||
51 |
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.