| 1 | <?php |
||
| 8 | class Json implements Body |
||
| 9 | { |
||
| 10 | private |
||
| 11 | $jsonAsArray; |
||
|
1 ignored issue
–
show
|
|||
| 12 | |||
| 13 | 3 | public function __construct($content = []) |
|
| 17 | |||
| 18 | 2 | public function format() |
|
| 22 | |||
| 23 | public function footprint() |
||
| 27 | |||
| 28 | public function getContentType() |
||
| 32 | |||
| 33 | 3 | public function changeContent($content) |
|
| 42 | |||
| 43 | 2 | public function changeContentWithJson($json) |
|
| 47 | |||
| 48 | public function __toString() |
||
| 52 | |||
| 53 | 1 | public function decode() |
|
| 57 | } |
||
| 58 |
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.