Completed
Push — master ( 449b6f...296164 )
by Artem
02:13
created

ChannelOptions::getHookUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
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 2
    public function getTag(): ?string
26
    {
27 2
        return $this->tag;
28
    }
29
}
30