Total Complexity | 12 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class Time extends AbstractRule |
||
14 | { |
||
15 | const PATTERN = '/^(\d{2}):(\d{2}):(\d{2})$/'; |
||
16 | |||
17 | /** |
||
18 | * Validates input. |
||
19 | * |
||
20 | * @param mixed $input |
||
21 | * |
||
22 | * @return bool |
||
23 | */ |
||
24 | public function isValid($input = null) |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Checks whether a time is valid. |
||
49 | * |
||
50 | * @param int $hour |
||
51 | * @param int $minute |
||
52 | * @param int $second |
||
53 | * |
||
54 | * @return bool |
||
55 | */ |
||
56 | protected static function checkTime($hour, $minute, $second) |
||
61 |