1 | <?php |
||
8 | class Binary implements Body |
||
9 | { |
||
10 | private |
||
11 | $content; |
||
1 ignored issue
–
show
|
|||
12 | |||
13 | 2 | public function __construct($content) |
|
17 | |||
18 | 1 | public function inOriginalFormat() |
|
19 | { |
||
20 | 1 | return $this->content; |
|
21 | } |
||
22 | |||
23 | public function asTransported() |
||
24 | { |
||
25 | return $this->content; |
||
26 | } |
||
27 | |||
28 | 1 | public function getContentType() |
|
32 | |||
33 | 1 | public function __toString() |
|
40 | |||
41 | 2 | public function changeContent($content) |
|
42 | { |
||
45 | } |
||
46 |
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.