| Total Complexity | 7 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Gregwar implements iCaptcha |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Check is captcha provide 'full-based' output realisation |
||
| 16 | * @return bool |
||
| 17 | */ |
||
| 18 | public function isFull() |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Get captcha image link(isFull():=false) or builded JS code(isFull():=true) |
||
| 25 | * @return string |
||
| 26 | */ |
||
| 27 | public function get() |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Validate input data from captcha |
||
| 34 | * @param string|null $data |
||
| 35 | * @return bool |
||
| 36 | * @throws SyntaxException |
||
| 37 | */ |
||
| 38 | public static function validate($data = null) |
||
| 57 |