31 lines
691 B
PHP
31 lines
691 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace App\Http\Resources\Api\V1;
|
||
|
|
||
|
use Illuminate\Http\Request;
|
||
|
use Illuminate\Http\Resources\Json\JsonResource;
|
||
|
|
||
|
final class CaptchaVerificationInformation extends JsonResource
|
||
|
{
|
||
|
/**
|
||
|
* @var \App\ServiceResults\Api\V1\CaptchaService\CaptchaVerificationInformationResult
|
||
|
*/
|
||
|
public $resource;
|
||
|
|
||
|
/**
|
||
|
* Transform the resource into an array.
|
||
|
*
|
||
|
* @param Request $request
|
||
|
* @return array
|
||
|
*/
|
||
|
public function toArray(Request $request): array
|
||
|
{
|
||
|
$info = [];
|
||
|
|
||
|
return [
|
||
|
'status' => $this->resource->isStatus(),
|
||
|
'message' => $this->resource->getMessage(),
|
||
|
];
|
||
|
}
|
||
|
}
|