Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class SKAlgorithm extends TINAlgorithm |
||
11 | { |
||
12 | const LENGTH = 10; |
||
13 | |||
14 | public function validate(string $tin) |
||
15 | { |
||
16 | $str = StringUtil::clearString($tin); |
||
17 | if (!$this->isFollowLength($str)) { |
||
18 | return StatusCode::INVALID_LENGTH; |
||
19 | } |
||
20 | return StatusCode::VALID; |
||
21 | } |
||
22 | |||
23 | public function isFollowLength(string $tin) |
||
30 | } |
||
31 | } |
||
32 |