Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Coverage | 69.23% |
Changes | 0 |
1 | <?php |
||
7 | class Channel |
||
8 | { |
||
9 | private $name; |
||
10 | private $driver; |
||
11 | private $secret; |
||
12 | |||
13 | 4 | public function __construct(string $name, Driver $driver, string $secret = null) |
|
14 | { |
||
15 | 4 | $this->name = $name; |
|
16 | 4 | $this->driver = $driver; |
|
17 | 4 | $this->secret = $secret; |
|
18 | 4 | } |
|
19 | |||
20 | 3 | public function getName(): string |
|
21 | { |
||
22 | 3 | return $this->name; |
|
23 | } |
||
24 | |||
25 | 1 | public function getDriver(): Driver |
|
26 | { |
||
27 | 1 | return $this->driver; |
|
28 | } |
||
29 | |||
30 | public function getSecret(): ?string |
||
33 | } |
||
34 | |||
35 | public function getWebhookUrl(): string |
||
38 | } |
||
39 | } |
||
40 |