Files
animethemes-server/app/GraphQL/Definition/Unions/LikedUnion.php
T

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(),
];
}
}