Completed
Push — master ( 1be44d...449b6f )
by Artem
02:21
created

ChannelOptions   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 20
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getHookUrl() 0 3 1
A getTag() 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
    public function __construct(?string $hookUrl, ?string $tag)
15
    {
16
        $this->hookUrl = $hookUrl;
17
        $this->tag = $tag;
18
    }
19
20
    public function getHookUrl(): ?string
21
    {
22
        return $this->hookUrl;
23
    }
24
25
    public function getTag(): ?string
26
    {
27
        return $this->tag;
28
    }
29
}
30