Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
16 | class SubscriptionEvent implements PolymorphicObjectInterface |
||
17 | { |
||
18 | use PolymorphicObjectTrait; |
||
19 | |||
20 | /** |
||
21 | * @var mixed|null |
||
22 | */ |
||
23 | protected $data; |
||
24 | |||
25 | /** |
||
26 | * SubscriptionEvent constructor. |
||
27 | * |
||
28 | * @param mixed|null $data |
||
29 | */ |
||
30 | public function __construct($data) |
||
31 | { |
||
32 | $this->data = $data; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @inheritDoc |
||
37 | */ |
||
38 | public function __get($name) |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @inheritDoc |
||
45 | */ |
||
46 | public function __set($name, $value) |
||
47 | { |
||
48 | $this->data = $value; |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @inheritDoc |
||
53 | */ |
||
54 | public function __isset($name) |
||
57 | } |
||
58 | } |
||
59 |