Total Complexity | 5 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | final class Subscription implements \JsonSerializable |
||
6 | { |
||
7 | |||
8 | private string $id; |
||
9 | private string $subscriber; |
||
10 | private string $topic; |
||
11 | private bool $active; |
||
12 | private $payload; |
||
13 | |||
14 | public function __construct(string $id, string $subscriber, string $topic, bool $active, $payload) |
||
21 | } |
||
22 | |||
23 | public function getId(): string |
||
26 | } |
||
27 | |||
28 | public function getSubscriber(): string |
||
29 | { |
||
30 | return $this->subscriber; |
||
31 | } |
||
32 | |||
33 | public function jsonSerialize() |
||
49 | } |
||
50 | } |
||
51 |