Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
CaptchaService | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
getCaptcha | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
getCaptchaDetails | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace BO\Zmscitizenapi\Services\Security; |
6 | |
7 | use BO\Zmscitizenapi\Models\Captcha\FriendlyCaptcha; |
8 | |
9 | class CaptchaService |
10 | { |
11 | public function getCaptcha(): array |
12 | { |
13 | return $this->getCaptchaDetails()->getCaptchaDetails(); |
14 | } |
15 | |
16 | private function getCaptchaDetails(): FriendlyCaptcha |
17 | { |
18 | return new FriendlyCaptcha(); |
19 | } |
20 | } |