1 | <?php |
||
9 | class Json implements Body, Footprintable |
||
10 | { |
||
11 | private |
||
12 | $jsonAsArray; |
||
1 ignored issue
–
show
|
|||
13 | |||
14 | 5 | public function __construct($content = []) |
|
18 | |||
19 | 2 | public function inOriginalFormat() |
|
23 | |||
24 | 5 | public function asTransported() |
|
28 | |||
29 | 2 | public function getContentType() |
|
33 | |||
34 | 1 | public function __toString() |
|
38 | |||
39 | 1 | public function footprint() |
|
43 | |||
44 | 5 | public function changeContent($content) |
|
53 | |||
54 | 2 | public function changeContentWithJson($json) |
|
58 | } |
||
59 |
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.