Total Complexity | 3 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | class DefaultSerializationExclusionData implements SerializationExclusionData |
||
20 | { |
||
21 | |||
22 | /** |
||
23 | * @var object |
||
24 | */ |
||
25 | private $objectToSerialize; |
||
26 | |||
27 | /** |
||
28 | * @var JsonWritable |
||
29 | */ |
||
30 | private $writer; |
||
31 | |||
32 | /** |
||
33 | * Constructor |
||
34 | * |
||
35 | * @param object $objectToSerialize |
||
36 | * @param JsonWritable $writer |
||
37 | */ |
||
38 | 2 | public function __construct($objectToSerialize, JsonWritable $writer) |
|
42 | 2 | } |
|
43 | |||
44 | /** |
||
45 | * Get the object currently being serialized |
||
46 | * |
||
47 | * @return object |
||
48 | */ |
||
49 | 1 | public function getObjectToSerialize() |
|
52 | } |
||
53 | |||
54 | /** |
||
55 | * Get the current path formatted as json xpath |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | 2 | public function getPath(): string |
|
64 |