Add captcha image generation functionality.

This commit is contained in:
2023-06-28 17:29:56 +06:00
parent 81635b4efa
commit a35b8db281
26 changed files with 1211 additions and 5 deletions

View File

@@ -0,0 +1,38 @@
<?php declare(strict_types=1);
namespace App\ServiceResults\Api\V1\CaptchaService;
use App\ServiceResults\ServiceResult;
final class Captcha extends ServiceResult
{
public function __construct(
private readonly string $imageBase64,
private readonly string $imageTextBase64,
private readonly string $key
) { }
/**
* @return string
*/
public function getImageBase64(): string
{
return $this->imageBase64;
}
/**
* @return string
*/
public function getImageTextBase64(): string
{
return $this->imageTextBase64;
}
/**
* @return string
*/
public function getKey(): string
{
return $this->key;
}
}