cTelephone::setPhoneType()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 5
Ratio 100 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 5
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Gueststream\PMS\IQWare\API;
4
5 View Code Duplication
class cTelephone
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
6
{
7
8
    /**
9
     * @var TTelephoneType $PhoneType
10
     */
11
    protected $PhoneType = null;
12
13
    /**
14
     * @var string $PhoneNo
15
     */
16
    protected $PhoneNo = null;
17
18
    /**
19
     * @var string $PhoneExt
20
     */
21
    protected $PhoneExt = null;
22
23
    /**
24
     * @param TTelephoneType $PhoneType
25
     */
26
    public function __construct($PhoneType)
27
    {
28
        $this->PhoneType = $PhoneType;
29
    }
30
31
    /**
32
     * @return TTelephoneType
33
     */
34
    public function getPhoneType()
35
    {
36
        return $this->PhoneType;
37
    }
38
39
    /**
40
     * @param TTelephoneType $PhoneType
41
     * @return \Gueststream\PMS\IQWare\API\cTelephone
42
     */
43
    public function setPhoneType($PhoneType)
44
    {
45
        $this->PhoneType = $PhoneType;
46
        return $this;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getPhoneNo()
53
    {
54
        return $this->PhoneNo;
55
    }
56
57
    /**
58
     * @param string $PhoneNo
59
     * @return \Gueststream\PMS\IQWare\API\cTelephone
60
     */
61
    public function setPhoneNo($PhoneNo)
62
    {
63
        $this->PhoneNo = $PhoneNo;
64
        return $this;
65
    }
66
67
    /**
68
     * @return string
69
     */
70
    public function getPhoneExt()
71
    {
72
        return $this->PhoneExt;
73
    }
74
75
    /**
76
     * @param string $PhoneExt
77
     * @return \Gueststream\PMS\IQWare\API\cTelephone
78
     */
79
    public function setPhoneExt($PhoneExt)
80
    {
81
        $this->PhoneExt = $PhoneExt;
82
        return $this;
83
    }
84
}
85