PsaCreateCustomTicket   A
last analyzed

Complexity

Total Complexity 11

Size/Duplication

Total Lines 144
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 31
c 2
b 0
f 0
dl 0
loc 144
ccs 0
cts 36
cp 0
rs 10
wmc 11

11 Methods

Rating   Name   Duplication   Size   Complexity  
A withUsername() 0 6 1
A withTicketNumber() 0 6 1
A getTicketUrl() 0 3 1
A getTicketNumber() 0 3 1
A getPsaCustomTicketId() 0 3 1
A withPassword() 0 6 1
A withTicketUrl() 0 6 1
A withPsaCustomTicketId() 0 6 1
A getUsername() 0 3 1
A getPassword() 0 3 1
A __construct() 0 7 1
1
<?php
2
3
namespace Spinen\Ncentral\Type;
4
5
6
use Phpro\SoapClient\Type\RequestInterface;
7
8
class PsaCreateCustomTicket implements RequestInterface
9
{
10
11
    /**
12
     * @var string
13
     */
14
    private $username;
15
16
    /**
17
     * @var string
18
     */
19
    private $password;
20
21
    /**
22
     * @var int
23
     */
24
    private $psaCustomTicketId;
25
26
    /**
27
     * @var string
28
     */
29
    private $ticketNumber;
30
31
    /**
32
     * @var string
33
     */
34
    private $ticketUrl;
35
36
    /**
37
     * Constructor
38
     *
39
     * @var string $username
40
     * @var string $password
41
     * @var int $psaCustomTicketId
42
     * @var string $ticketNumber
43
     * @var string $ticketUrl
44
     */
45
    public function __construct($username, $password, $psaCustomTicketId, $ticketNumber, $ticketUrl)
46
    {
47
        $this->username = $username;
48
        $this->password = $password;
49
        $this->psaCustomTicketId = $psaCustomTicketId;
50
        $this->ticketNumber = $ticketNumber;
51
        $this->ticketUrl = $ticketUrl;
52
    }
53
54
    /**
55
     * @return string
56
     */
57
    public function getUsername()
58
    {
59
        return $this->username;
60
    }
61
62
    /**
63
     * @param string $username
64
     * @return PsaCreateCustomTicket
65
     */
66
    public function withUsername($username)
67
    {
68
        $new = clone $this;
69
        $new->username = $username;
70
71
        return $new;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function getPassword()
78
    {
79
        return $this->password;
80
    }
81
82
    /**
83
     * @param string $password
84
     * @return PsaCreateCustomTicket
85
     */
86
    public function withPassword($password)
87
    {
88
        $new = clone $this;
89
        $new->password = $password;
90
91
        return $new;
92
    }
93
94
    /**
95
     * @return int
96
     */
97
    public function getPsaCustomTicketId()
98
    {
99
        return $this->psaCustomTicketId;
100
    }
101
102
    /**
103
     * @param int $psaCustomTicketId
104
     * @return PsaCreateCustomTicket
105
     */
106
    public function withPsaCustomTicketId($psaCustomTicketId)
107
    {
108
        $new = clone $this;
109
        $new->psaCustomTicketId = $psaCustomTicketId;
110
111
        return $new;
112
    }
113
114
    /**
115
     * @return string
116
     */
117
    public function getTicketNumber()
118
    {
119
        return $this->ticketNumber;
120
    }
121
122
    /**
123
     * @param string $ticketNumber
124
     * @return PsaCreateCustomTicket
125
     */
126
    public function withTicketNumber($ticketNumber)
127
    {
128
        $new = clone $this;
129
        $new->ticketNumber = $ticketNumber;
130
131
        return $new;
132
    }
133
134
    /**
135
     * @return string
136
     */
137
    public function getTicketUrl()
138
    {
139
        return $this->ticketUrl;
140
    }
141
142
    /**
143
     * @param string $ticketUrl
144
     * @return PsaCreateCustomTicket
145
     */
146
    public function withTicketUrl($ticketUrl)
147
    {
148
        $new = clone $this;
149
        $new->ticketUrl = $ticketUrl;
150
151
        return $new;
152
    }
153
154
155
}
156
157