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