mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-22 20:36:04 +02:00
26 lines
530 B
PHP
26 lines
530 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\GraphQL\Definition\Fields;
|
|
|
|
use App\GraphQL\Support\Filter\EqFilter;
|
|
use App\GraphQL\Support\Filter\Filter;
|
|
use App\GraphQL\Support\Filter\GreaterFilter;
|
|
use App\GraphQL\Support\Filter\LesserFilter;
|
|
|
|
abstract class DateTimeTzField extends StringField
|
|
{
|
|
/**
|
|
* @return Filter[]
|
|
*/
|
|
public function getFilters(): array
|
|
{
|
|
return [
|
|
new EqFilter($this),
|
|
new LesserFilter($this),
|
|
new GreaterFilter($this),
|
|
];
|
|
}
|
|
}
|