Completed
Pull Request — master (#2)
by Elodie
06:10
created

AbstractCallTrackingMessage   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 88
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 88
rs 10
c 0
b 0
f 0

8 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 4 1
A getPhoneDid() 0 4 1
A setPhoneDid() 0 4 1
A getPhoneDestination() 0 4 1
A setPhoneDestination() 0 4 1
A hasCallerId() 0 4 1
A setCallerId() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Yproximite\Api\Message\CallTracking;
5
6
use Yproximite\Api\Message\MessageInterface;
7
use Yproximite\Api\Message\SiteAwareMessageTrait;
8
9
/**
10
 * Class AbstractCallTrackingMessage
11
 */
12
abstract class AbstractCallTrackingMessage implements MessageInterface
13
{
14
    use SiteAwareMessageTrait;
15
16
    /**
17
     * @var string
18
     */
19
    private $name;
20
21
    /**
22
     * @var string|null
23
     */
24
    private $phoneDid;
25
26
    /**
27
     * @var string
28
     */
29
    private $phoneDestination;
30
31
    /**
32
     * @var bool
33
     */
34
    private $callerId;
35
36
    /**
37
     * @return string
38
     */
39
    public function getName(): string
40
    {
41
        return $this->name;
42
    }
43
44
    /**
45
     * @param string $name
46
     */
47
    public function setName(string $name)
48
    {
49
        $this->name = $name;
50
    }
51
52
    /**
53
     * @return null|string
54
     */
55
    public function getPhoneDid()
56
    {
57
        return $this->phoneDid;
58
    }
59
60
    /**
61
     * @param null|string $phoneDid
62
     */
63
    public function setPhoneDid(string $phoneDid = null)
64
    {
65
        $this->phoneDid = $phoneDid;
66
    }
67
68
    /**
69
     * @return string
70
     */
71
    public function getPhoneDestination(): string
72
    {
73
        return $this->phoneDestination;
74
    }
75
76
    /**
77
     * @param string $phoneDestination
78
     */
79
    public function setPhoneDestination(string $phoneDestination)
80
    {
81
        $this->phoneDestination = $phoneDestination;
82
    }
83
84
    /**
85
     * @return boolean
86
     */
87
    public function hasCallerId(): bool
88
    {
89
        return $this->callerId;
90
    }
91
92
    /**
93
     * @param boolean $callerId
94
     */
95
    public function setCallerId(bool $callerId)
96
    {
97
        $this->callerId = $callerId;
98
    }
99
}
100