@@ -21,7 +21,6 @@ class Request implements ArrayHydrateInterface
21
21
{
22
22
public const PIN_LENGTH_4 = 4 ;
23
23
public const PIN_LENGTH_6 = 6 ;
24
-
25
24
public const WORKFLOW_SMS_TTS_TSS = 1 ;
26
25
public const WORKFLOW_SMS_SMS_TSS = 2 ;
27
26
public const WORKFLOW_TTS_TSS = 3 ;
@@ -30,40 +29,14 @@ class Request implements ArrayHydrateInterface
30
29
public const WORKFLOW_SMS = 6 ;
31
30
public const WORKFLOW_TTS = 7 ;
32
31
33
- /**
34
- * @var string
35
- */
36
- protected $ country ;
37
-
38
- /**
39
- * @var string
40
- */
41
- protected $ senderId = 'VERIFY ' ;
42
-
43
- /**
44
- * @var int
45
- */
46
- protected $ codeLength = 4 ;
47
-
48
- /**
49
- * @var string
50
- */
51
- protected $ locale ;
52
-
53
- /**
54
- * @var int
55
- */
56
- protected $ pinExpiry = 300 ;
57
-
58
- /**
59
- * @var int
60
- */
61
- protected $ nextEventWait = 300 ;
62
-
63
- /**
64
- * @var int
65
- */
66
- protected $ workflowId = 1 ;
32
+ protected string $ country = '' ;
33
+ protected string $ senderId = 'VONAGE ' ;
34
+ protected int $ codeLength = 4 ;
35
+
36
+ protected string $ locale = '' ;
37
+ protected int $ pinExpiry = 300 ;
38
+ protected int $ nextEventWait = 300 ;
39
+ protected int $ workflowId = 1 ;
67
40
68
41
public function __construct (protected string $ number , protected string $ brand , int $ workflowId = 1 )
69
42
{
@@ -75,9 +48,6 @@ public function getCountry(): ?string
75
48
return $ this ->country ;
76
49
}
77
50
78
- /**
79
- * @return $this
80
- */
81
51
public function setCountry (string $ country ): self
82
52
{
83
53
if (strlen ($ country ) !== 2 ) {
@@ -94,9 +64,6 @@ public function getSenderId(): string
94
64
return $ this ->senderId ;
95
65
}
96
66
97
- /**
98
- * @return $this
99
- */
100
67
public function setSenderId (string $ senderId ): self
101
68
{
102
69
$ this ->senderId = $ senderId ;
@@ -109,9 +76,6 @@ public function getCodeLength(): int
109
76
return $ this ->codeLength ;
110
77
}
111
78
112
- /**
113
- * @return $this
114
- */
115
79
public function setCodeLength (int $ codeLength ): self
116
80
{
117
81
if ($ codeLength !== self ::PIN_LENGTH_4 && $ codeLength !== self ::PIN_LENGTH_6 ) {
@@ -130,9 +94,6 @@ public function getLocale(): ?string
130
94
return $ this ->locale ;
131
95
}
132
96
133
- /**
134
- * @return $this
135
- */
136
97
public function setLocale (string $ locale ): self
137
98
{
138
99
$ this ->locale = $ locale ;
@@ -145,9 +106,6 @@ public function getPinExpiry(): int
145
106
return $ this ->pinExpiry ;
146
107
}
147
108
148
- /**
149
- * @return $this
150
- */
151
109
public function setPinExpiry (int $ pinExpiry ): self
152
110
{
153
111
if ($ pinExpiry < 60 || $ pinExpiry > 3600 ) {
@@ -164,9 +122,6 @@ public function getNextEventWait(): int
164
122
return $ this ->nextEventWait ;
165
123
}
166
124
167
- /**
168
- * @return $this
169
- */
170
125
public function setNextEventWait (int $ nextEventWait ): self
171
126
{
172
127
if ($ nextEventWait < 60 || $ nextEventWait > 3600 ) {
@@ -183,9 +138,6 @@ public function getWorkflowId(): int
183
138
return $ this ->workflowId ;
184
139
}
185
140
186
- /**
187
- * @return $this
188
- */
189
141
public function setWorkflowId (int $ workflowId ): self
190
142
{
191
143
if ($ workflowId < 1 || $ workflowId > 7 ) {
0 commit comments