| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class DefaultSerializationExclusionData implements SerializationExclusionData |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * The object that's currently being serialized |
||
| 23 | * |
||
| 24 | * @var object |
||
| 25 | */ |
||
| 26 | private $objectToSerialize; |
||
| 27 | /** |
||
| 28 | * @var WriterContext |
||
| 29 | */ |
||
| 30 | private $context; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Constructor |
||
| 34 | * |
||
| 35 | * @param object $objectToSerialize |
||
| 36 | * @param WriterContext $context |
||
| 37 | */ |
||
| 38 | 1 | public function __construct($objectToSerialize, WriterContext $context) |
|
| 42 | 1 | } |
|
| 43 | |||
| 44 | /** |
||
| 45 | * Get the object currently being serialized |
||
| 46 | * |
||
| 47 | * @return object |
||
| 48 | */ |
||
| 49 | 1 | public function getObjectToSerialize() |
|
| 50 | { |
||
| 51 | 1 | return $this->objectToSerialize; |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get the writer context |
||
| 56 | * |
||
| 57 | * @return WriterContext |
||
| 58 | */ |
||
| 59 | 1 | public function getContext(): WriterContext |
|
| 62 | } |
||
| 63 | } |
||
| 64 |