Add captcha image generation functionality.
This commit is contained in:
27
app/Captcha/Dto/ImageBody.php
Normal file
27
app/Captcha/Dto/ImageBody.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php declare(strict_types=1);
|
||||
|
||||
namespace App\Captcha\Dto;
|
||||
|
||||
final readonly class ImageBody
|
||||
{
|
||||
public function __construct(
|
||||
private Image $image,
|
||||
private array $coordinators
|
||||
) { }
|
||||
|
||||
/**
|
||||
* @return Image
|
||||
*/
|
||||
public function getImage(): Image
|
||||
{
|
||||
return $this->image;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Coordinators
|
||||
*/
|
||||
public function getCoordinators(): array
|
||||
{
|
||||
return $this->coordinators;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user