Files
animethemes-server/app/Http/Api/Schema/Config/WikiSchema.php
T
paranarimasu 128b90dae2 refactor(api): provide query to field to determine selection and aggregation (#512)
* refactor(api): provide query to field to determine selection and aggregation

* style: fix StyleCI findings
2023-02-01 23:31:55 -06:00

52 lines
964 B
PHP

<?php
declare(strict_types=1);
namespace App\Http\Api\Schema\Config;
use App\Http\Api\Field\Config\Wiki\WikiFeaturedThemeField;
use App\Http\Api\Field\Field;
use App\Http\Api\Include\AllowedInclude;
use App\Http\Api\Schema\Schema;
use App\Http\Resources\Config\Resource\WikiResource;
/**
* Class WikiSchema.
*/
class WikiSchema extends Schema
{
/**
* Get the type of the resource.
*
* @return string
*/
public function type(): string
{
return WikiResource::$wrap;
}
/**
* Get the allowed includes.
*
* @return AllowedInclude[]
*/
public function allowedIncludes(): array
{
return [];
}
/**
* Get the direct fields of the resource.
*
* @return Field[]
*
* @noinspection PhpMissingParentCallCommonInspection
*/
public function fields(): array
{
return [
new WikiFeaturedThemeField($this),
];
}
}