Tag   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 9
dl 0
loc 51
ccs 13
cts 13
cp 1
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A setMarker() 0 3 1
A getMarker() 0 3 1
A setOther() 0 3 1
A __construct() 0 4 1
A getOther() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Ctefan\Kiwi;
5
6
class Tag
7
{
8
    /**
9
     * @var Symbol
10
     */
11
    protected $marker;
12
13
    /**
14
     * @var Symbol
15
     */
16
    protected $other;
17
18
    /**
19
     * Tag constructor.
20
     */
21 21
    public function __construct()
22
    {
23 21
        $this->marker = new Symbol();
24 21
        $this->other = new Symbol();
25 21
    }
26
27
    /**
28
     * @return Symbol
29
     */
30 19
    public function getMarker(): Symbol
31
    {
32 19
        return $this->marker;
33
    }
34
35
    /**
36
     * @param Symbol $marker
37
     */
38 21
    public function setMarker(Symbol $marker): void
39
    {
40 21
        $this->marker = $marker;
41 21
    }
42
43
    /**
44
     * @return Symbol
45
     */
46 19
    public function getOther(): Symbol
47
    {
48 19
        return $this->other;
49
    }
50
51
    /**
52
     * @param Symbol $other
53
     */
54 3
    public function setOther(Symbol $other): void
55
    {
56 3
        $this->other = $other;
57
    }
58
}