mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-17 08:10:46 +02:00
* refactor(api): prefer including pivot types to conditional pivot information * style: fix StyleCI findings
33 lines
568 B
PHP
33 lines
568 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Resources\Wiki\Resource;
|
|
|
|
use App\Http\Api\Schema\Schema;
|
|
use App\Http\Api\Schema\Wiki\ArtistSchema;
|
|
use App\Http\Resources\BaseResource;
|
|
|
|
/**
|
|
* Class ArtistResource.
|
|
*/
|
|
class ArtistResource extends BaseResource
|
|
{
|
|
/**
|
|
* The "data" wrapper that should be applied.
|
|
*
|
|
* @var string|null
|
|
*/
|
|
public static $wrap = 'artist';
|
|
|
|
/**
|
|
* Get the resource schema.
|
|
*
|
|
* @return Schema
|
|
*/
|
|
protected function schema(): Schema
|
|
{
|
|
return new ArtistSchema();
|
|
}
|
|
}
|