1 | <?php |
||
11 | class YamlSerializer extends \Object implements IRestSerializer { |
||
12 | |||
13 | /** |
||
14 | * @config |
||
15 | */ |
||
16 | private static $is_active = true; |
||
|
|||
17 | |||
18 | /** |
||
19 | * The content type. |
||
20 | * @var string |
||
21 | */ |
||
22 | private $contentType = "application/yaml"; |
||
23 | |||
24 | /** |
||
25 | * Serializes the given data into a yaml string. |
||
26 | * |
||
27 | * @param array $data the data that should be serialized |
||
28 | * @return string a yaml formatted string |
||
29 | */ |
||
30 | public function serialize($data) { |
||
34 | |||
35 | public function contentType() { |
||
38 | |||
39 | /** |
||
40 | * Indicates if the serializer is active. |
||
41 | * Serializers can be deactivated to use another implementation for the same mime type. |
||
42 | * |
||
43 | * @return boolean |
||
44 | */ |
||
45 | public function active() { |
||
48 | } |
||
49 |
This check marks private properties in classes that are never used. Those properties can be removed.