mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-22 04:16:05 +02:00
40 lines
801 B
PHP
40 lines
801 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Schema\Unions;
|
|
|
|
use App\GraphQL\Schema\Types\BaseType;
|
|
use App\GraphQL\Schema\Types\List\PlaylistType;
|
|
use App\GraphQL\Schema\Types\Wiki\Anime\Theme\AnimeThemeEntryType;
|
|
|
|
class LikedUnion extends BaseUnion
|
|
{
|
|
/**
|
|
* The name of the union type.
|
|
* By default, it will be the class name.
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return 'Liked';
|
|
}
|
|
|
|
public function description(): string
|
|
{
|
|
return 'Represents the resources that can be liked';
|
|
}
|
|
|
|
/**
|
|
* The types that this union can resolve to.
|
|
*
|
|
* @return BaseType[]
|
|
*/
|
|
public function baseTypes(): array
|
|
{
|
|
return [
|
|
new AnimeThemeEntryType(),
|
|
new PlaylistType(),
|
|
];
|
|
}
|
|
}
|