1 | <?php namespace Limoncello\Flute\Validation\JsonApi\Rules; |
||
27 | class DefaultQueryValidationRules implements JsonApiQueryRulesInterface |
||
28 | { |
||
29 | /** |
||
30 | * @inheritdoc |
||
31 | * |
||
32 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
33 | */ |
||
34 | 28 | public static function getIdentityRule(): ?RuleInterface |
|
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | 28 | public static function getFilterRules(): ?array |
|
46 | |||
47 | /** |
||
48 | * @inheritdoc |
||
49 | */ |
||
50 | 28 | public static function getFieldSetRules(): ?array |
|
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | * |
||
58 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
59 | */ |
||
60 | 28 | public static function getSortsRule(): ?RuleInterface |
|
64 | |||
65 | /** |
||
66 | * @inheritdoc |
||
67 | * |
||
68 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
69 | */ |
||
70 | 28 | public static function getIncludesRule(): ?RuleInterface |
|
74 | |||
75 | /** |
||
76 | * @inheritdoc |
||
77 | * |
||
78 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
79 | */ |
||
80 | 28 | public static function getPageOffsetRule(): ?RuleInterface |
|
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | * |
||
93 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
94 | */ |
||
95 | 28 | public static function getPageLimitRule(): ?RuleInterface |
|
102 | |||
103 | /** |
||
104 | * @param int $defaultSize |
||
105 | * @param int $maxSize |
||
106 | * |
||
107 | * @return RuleInterface |
||
108 | * |
||
109 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
110 | */ |
||
111 | 28 | public static function getPageLimitRuleForDefaultAndMaxSizes(int $defaultSize, int $maxSize): RuleInterface |
|
122 | } |
||
123 |