Total Complexity | 3 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
18 | class SubscriptionRequest |
||
19 | { |
||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $id; |
||
24 | |||
25 | /** |
||
26 | * @var array |
||
27 | */ |
||
28 | protected $data = []; |
||
29 | |||
30 | /** |
||
31 | * SubscriptionRequest constructor. |
||
32 | * |
||
33 | * @param string $id |
||
34 | * @param array $data |
||
35 | */ |
||
36 | public function __construct(string $id, array $data = []) |
||
37 | { |
||
38 | $this->id = $id; |
||
39 | $this->data = $data; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | public function getId(): string |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getData(): array |
||
56 | } |
||
57 | } |
||
58 |