|
1
|
|
|
<?php |
|
2
|
|
|
/** |
|
3
|
|
|
* This file is part of graze/unicontroller-client. |
|
4
|
|
|
* |
|
5
|
|
|
* Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com> |
|
6
|
|
|
* |
|
7
|
|
|
* For the full copyright and license information, please view the LICENSE |
|
8
|
|
|
* file that was distributed with this source code. |
|
9
|
|
|
* |
|
10
|
|
|
* @license https://github.com/graze/unicontroller-client/blob/master/LICENSE.md |
|
11
|
|
|
* @link https://github.com/graze/unicontroller-client |
|
12
|
|
|
*/ |
|
13
|
|
|
namespace Graze\UnicontrollerClient\Entity\Entity; |
|
14
|
|
|
|
|
15
|
|
|
use Graze\UnicontrollerClient\Entity\Entity\EntityInterface; |
|
16
|
|
|
|
|
17
|
|
|
class EntityVarPrompt implements EntityInterface |
|
18
|
|
|
{ |
|
19
|
|
|
/** |
|
20
|
|
|
* @var string |
|
21
|
|
|
*/ |
|
22
|
|
|
protected $name; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* @var string |
|
26
|
|
|
*/ |
|
27
|
|
|
protected $prompt; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* @var int |
|
31
|
|
|
*/ |
|
32
|
|
|
protected $length; |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @var int |
|
36
|
|
|
*/ |
|
37
|
|
|
protected $inputType; |
|
38
|
|
|
|
|
39
|
|
|
/** |
|
40
|
|
|
* @var int |
|
41
|
|
|
*/ |
|
42
|
|
|
protected $jumpSpecial; |
|
43
|
|
|
|
|
44
|
|
|
/** |
|
45
|
|
|
* @var int |
|
46
|
|
|
*/ |
|
47
|
|
|
protected $cPadding; |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* @var string |
|
51
|
|
|
*/ |
|
52
|
|
|
protected $mask; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @return string |
|
56
|
|
|
*/ |
|
57
|
1 |
|
public function getName() |
|
58
|
|
|
{ |
|
59
|
1 |
|
return $this->name; |
|
60
|
|
|
} |
|
61
|
|
|
|
|
62
|
|
|
/** |
|
63
|
|
|
* @param string $name |
|
64
|
|
|
*/ |
|
65
|
|
|
public function setName($name) |
|
66
|
|
|
{ |
|
67
|
|
|
$this->name = $name; |
|
68
|
|
|
} |
|
69
|
|
|
|
|
70
|
|
|
/** |
|
71
|
|
|
* @return string |
|
72
|
|
|
*/ |
|
73
|
1 |
|
public function getPrompt() |
|
74
|
|
|
{ |
|
75
|
1 |
|
return $this->prompt; |
|
76
|
|
|
} |
|
77
|
|
|
|
|
78
|
|
|
/** |
|
79
|
|
|
* @param string $prompt |
|
80
|
|
|
*/ |
|
81
|
|
|
public function setPrompt($prompt) |
|
82
|
|
|
{ |
|
83
|
|
|
$this->prompt = $prompt; |
|
84
|
|
|
} |
|
85
|
|
|
|
|
86
|
|
|
/** |
|
87
|
|
|
* @return int |
|
88
|
|
|
*/ |
|
89
|
1 |
|
public function getLength() |
|
90
|
|
|
{ |
|
91
|
1 |
|
return $this->length; |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* @param int $length |
|
96
|
|
|
*/ |
|
97
|
|
|
public function setLength($length) |
|
98
|
|
|
{ |
|
99
|
|
|
$this->length = $length; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* @return int |
|
104
|
|
|
*/ |
|
105
|
1 |
|
public function getInputType() |
|
106
|
|
|
{ |
|
107
|
1 |
|
return $this->inputType; |
|
108
|
|
|
} |
|
109
|
|
|
|
|
110
|
|
|
/** |
|
111
|
|
|
* @param int $inputType |
|
112
|
|
|
*/ |
|
113
|
|
|
public function setInputType($inputType) |
|
114
|
|
|
{ |
|
115
|
|
|
$this->inputType = $inputType; |
|
116
|
|
|
} |
|
117
|
|
|
|
|
118
|
|
|
/** |
|
119
|
|
|
* @return int |
|
120
|
|
|
*/ |
|
121
|
1 |
|
public function getJumpSpecial() |
|
122
|
|
|
{ |
|
123
|
1 |
|
return $this->jumpSpecial; |
|
124
|
|
|
} |
|
125
|
|
|
|
|
126
|
|
|
/** |
|
127
|
|
|
* @param int $jumpSpecial |
|
128
|
|
|
*/ |
|
129
|
|
|
public function setJumpSpecial($jumpSpecial) |
|
130
|
|
|
{ |
|
131
|
|
|
$this->jumpSpecial = $jumpSpecial; |
|
132
|
|
|
} |
|
133
|
|
|
|
|
134
|
|
|
/** |
|
135
|
|
|
* @return int |
|
136
|
|
|
*/ |
|
137
|
1 |
|
public function getcPadding() |
|
138
|
|
|
{ |
|
139
|
1 |
|
return $this->cPadding; |
|
140
|
|
|
} |
|
141
|
|
|
|
|
142
|
|
|
/** |
|
143
|
|
|
* @param int $cPadding |
|
144
|
|
|
*/ |
|
145
|
|
|
public function setcPadding($cPadding) |
|
146
|
|
|
{ |
|
147
|
|
|
$this->cPadding = $cPadding; |
|
148
|
|
|
} |
|
149
|
|
|
|
|
150
|
|
|
/** |
|
151
|
|
|
* @return string |
|
152
|
|
|
*/ |
|
153
|
1 |
|
public function getMask() |
|
154
|
|
|
{ |
|
155
|
1 |
|
return $this->mask; |
|
156
|
|
|
} |
|
157
|
|
|
|
|
158
|
|
|
/** |
|
159
|
|
|
* @param string $mask |
|
160
|
|
|
*/ |
|
161
|
|
|
public function setMask($mask) |
|
162
|
|
|
{ |
|
163
|
|
|
$this->mask = $mask; |
|
164
|
|
|
} |
|
165
|
|
|
} |
|
166
|
|
|
|