mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-11-06 22:33:43 +01:00
31 lines
632 B
PHP
31 lines
632 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 LikeableUnion extends BaseUnion
|
|
{
|
|
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(),
|
|
];
|
|
}
|
|
}
|