| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 15 | public function validate(string $tin) | ||
| 16 |     { | ||
| 17 |         if (!$this->isFollowLength($tin)) { | ||
| 18 | return StatusCode::INVALID_LENGTH; | ||
| 19 | } | ||
| 20 |         if (!$this->isFollowPattern($tin)) { | ||
| 21 | return StatusCode::INVALID_PATTERN; | ||
| 22 | } | ||
| 23 |         if (!$this->isFollowRules($tin)) { | ||
| 24 | return StatusCode::INVALID_SYNTAX; | ||
| 25 | } | ||
| 26 | return StatusCode::VALID; | ||
| 27 | } | ||
| 51 |