mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-10-24 11:39:21 +02:00
49 lines
874 B
PHP
49 lines
874 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Definition\Unions;
|
|
|
|
use App\GraphQL\Definition\Types\List\PlaylistType;
|
|
use App\GraphQL\Definition\Types\Wiki\VideoType;
|
|
use GraphQL\Type\Definition\Type;
|
|
|
|
/**
|
|
* Class LikedUnion.
|
|
*/
|
|
class LikedUnion extends BaseUnion
|
|
{
|
|
/**
|
|
* The name of the union type.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function name(): string
|
|
{
|
|
return 'Liked';
|
|
}
|
|
|
|
/**
|
|
* The description of the union type.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function description(): string
|
|
{
|
|
return 'Represents the resources that can be liked';
|
|
}
|
|
|
|
/**
|
|
* The types that this union can resolve to.
|
|
*
|
|
* @return array<int, Type>
|
|
*/
|
|
public function types(): array
|
|
{
|
|
return [
|
|
new PlaylistType(),
|
|
new VideoType(),
|
|
];
|
|
}
|
|
}
|