Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
peripherad
/
back
/
storage
/
debugbar
:
OpenApiValidationErrorResponse.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php declare(strict_types=1); namespace App\Attributes; use AllowDynamicProperties; use App\Responses\Shared\Dto; use App\Services\Shared\ResponseService; use Attribute; use Knuckles\Scribe\Attributes\Response as ResponseAttribute; #[AllowDynamicProperties] #[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_FUNCTION | Attribute::TARGET_METHOD | Attribute::TARGET_CLASS)] class OpenApiValidationErrorResponse extends ResponseAttribute { public function __construct() { } public function toArray(): array { return [ 'status' => 422, 'content' => ResponseService::array(Dto::validationError()), 'description' => 'Validation Error', ]; } }