Revived API /api/v1/captcha.
Now a new captcha is created to check for a bot.
This commit is contained in:
@@ -2,35 +2,27 @@
|
||||
|
||||
namespace App\ServiceResults\Api\V1\CaptchaService;
|
||||
|
||||
use App\Captcha\Dto\Image;
|
||||
use App\ServiceResults\ServiceResult;
|
||||
|
||||
final class Captcha extends ServiceResult
|
||||
{
|
||||
public function __construct(
|
||||
private readonly string $imageBase64,
|
||||
private readonly string $imageTextBase64,
|
||||
private readonly Image $imageHead,
|
||||
private readonly Image $imageBody,
|
||||
private readonly string $key
|
||||
) { }
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getImageBase64(): string
|
||||
public function getImageHead(): Image
|
||||
{
|
||||
return $this->imageBase64;
|
||||
return $this->imageHead;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getImageTextBase64(): string
|
||||
public function getImageBody(): Image
|
||||
{
|
||||
return $this->imageTextBase64;
|
||||
return $this->imageBody;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getKey(): string
|
||||
{
|
||||
return $this->key;
|
||||
|
Reference in New Issue
Block a user