Completed
Push — master ( fc297f...1be44d )
by Artem
04:24
created

ChannelOptions   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Test Coverage

Coverage 61.53%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 30
ccs 8
cts 13
cp 0.6153
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getHookUrl() 0 3 1
A __construct() 0 4 1
A setTag() 0 3 1
A getTag() 0 3 1
A setHookUrl() 0 3 1
1
<?php declare(strict_types=1);
2
3
namespace Gockets\Model;
4
5
/**
6
 * Channel options object to be sent on channel prepare
7
 */
8
final class ChannelOptions
9
{
10
    private $hookUrl;
11
12
    private $tag;
13
14 2
    public function __construct(?string $hookUrl, ?string $tag)
15
    {
16 2
        $this->hookUrl = $hookUrl;
17 2
        $this->tag = $tag;
18 2
    }
19
20 2
    public function getHookUrl(): ?string
21
    {
22 2
        return $this->hookUrl;
23
    }
24
25
    public function setHookUrl(?string $hookUrl): void
26
    {
27
        $this->hookUrl = $hookUrl;
28
    }
29
30 2
    public function getTag(): ?string
31
    {
32 2
        return $this->tag;
33
    }
34
35
    public function setTag(?string $tag): void
36
    {
37
        $this->tag = $tag;
38
    }
39
}
40