1 | <?php |
||
14 | class Explanation |
||
15 | { |
||
16 | /** |
||
17 | * Array key for explain result |
||
18 | */ |
||
19 | const COL_SECOND = 'second'; |
||
20 | |||
21 | const COL_MICROSECOND = 'microSecond'; |
||
22 | |||
23 | const COL_GROUP = 'group'; |
||
24 | |||
25 | const COL_CUSTOM = 'custom'; |
||
26 | |||
27 | const COL_RANDOM = 'random'; |
||
28 | |||
29 | const COL_CHECK_DIGIT = 'checkDigit'; |
||
30 | |||
31 | /** |
||
32 | * Is verify success |
||
33 | */ |
||
34 | const COL_VERIFIED = 'verified'; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $checkDigit = ''; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $custom = ''; |
||
45 | |||
46 | /** |
||
47 | * @var string |
||
48 | */ |
||
49 | protected $group = ''; |
||
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $microsecond = ''; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | protected $random = ''; |
||
60 | |||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $second = ''; |
||
65 | |||
66 | /** |
||
67 | * @var bool |
||
68 | */ |
||
69 | protected $verified = true; |
||
70 | |||
71 | |||
72 | /** |
||
73 | * @return string |
||
74 | */ |
||
75 | public function getCheckDigit() |
||
79 | |||
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getCustom() |
||
88 | |||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getGroup() |
||
97 | |||
98 | |||
99 | /** |
||
100 | * @return string |
||
101 | */ |
||
102 | public function getMicrosecond() |
||
106 | |||
107 | |||
108 | /** |
||
109 | * @return string |
||
110 | */ |
||
111 | public function getRandom() |
||
115 | |||
116 | |||
117 | /** |
||
118 | * @return string |
||
119 | */ |
||
120 | public function getSecond() |
||
124 | |||
125 | |||
126 | /** |
||
127 | * @return boolean |
||
128 | */ |
||
129 | public function isVerified() |
||
133 | |||
134 | |||
135 | /** |
||
136 | * @param string $checkDigit |
||
137 | * @return $this |
||
138 | */ |
||
139 | public function setCheckDigit($checkDigit) |
||
145 | |||
146 | |||
147 | /** |
||
148 | * @param string $custom |
||
149 | * @return $this |
||
150 | */ |
||
151 | public function setCustom($custom) |
||
157 | |||
158 | |||
159 | /** |
||
160 | * @param string $group |
||
161 | * @return $this |
||
162 | */ |
||
163 | public function setGroup($group) |
||
169 | |||
170 | |||
171 | /** |
||
172 | * @param string $microsecond |
||
173 | * @return $this |
||
174 | */ |
||
175 | public function setMicrosecond($microsecond) |
||
181 | |||
182 | |||
183 | /** |
||
184 | * @param string $random |
||
185 | * @return $this |
||
186 | */ |
||
187 | public function setRandom($random) |
||
193 | |||
194 | |||
195 | /** |
||
196 | * @param string $second |
||
197 | * @return $this |
||
198 | */ |
||
199 | public function setSecond($second) |
||
205 | |||
206 | |||
207 | /** |
||
208 | * @param boolean $verified |
||
209 | * @return $this |
||
210 | */ |
||
211 | public function setVerified($verified) |
||
217 | |||
218 | |||
219 | /** |
||
220 | * @return array |
||
221 | */ |
||
222 | public function toArray() |
||
234 | } |
||
235 |