2023-06-28 17:29:56 +06:00
|
|
|
<?php declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace App\ServiceResults\Api\V1\CaptchaService;
|
|
|
|
|
2023-09-19 14:27:33 +06:00
|
|
|
use App\Captcha\Dto\Image;
|
2023-06-28 17:29:56 +06:00
|
|
|
use App\ServiceResults\ServiceResult;
|
|
|
|
|
|
|
|
final class Captcha extends ServiceResult
|
|
|
|
{
|
|
|
|
public function __construct(
|
2023-09-19 14:27:33 +06:00
|
|
|
private readonly Image $imageHead,
|
|
|
|
private readonly Image $imageBody,
|
2023-06-28 17:29:56 +06:00
|
|
|
private readonly string $key
|
|
|
|
) { }
|
|
|
|
|
2023-09-19 14:27:33 +06:00
|
|
|
public function getImageHead(): Image
|
2023-06-28 17:29:56 +06:00
|
|
|
{
|
2023-09-19 14:27:33 +06:00
|
|
|
return $this->imageHead;
|
2023-06-28 17:29:56 +06:00
|
|
|
}
|
|
|
|
|
2023-09-19 14:27:33 +06:00
|
|
|
public function getImageBody(): Image
|
2023-06-28 17:29:56 +06:00
|
|
|
{
|
2023-09-19 14:27:33 +06:00
|
|
|
return $this->imageBody;
|
2023-06-28 17:29:56 +06:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getKey(): string
|
|
|
|
{
|
|
|
|
return $this->key;
|
|
|
|
}
|
|
|
|
}
|