Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | namespace Apie\Core\Metadata\Fields; |
| 3 | |
| 4 | use Apie\Core\Context\ApieContext; |
| 5 | use ReflectionType; |
| 6 | |
| 7 | interface FieldInterface |
| 8 | { |
| 9 | /** |
| 10 | * @template T of object |
| 11 | * @param class-string<T> $attributeClass |
| 12 | * @return array<int, T> |
| 13 | */ |
| 14 | public function getAttributes( |
| 15 | string $attributeClass, |
| 16 | bool $classDocBlock = true, |
| 17 | bool $propertyDocblock = true, |
| 18 | bool $argumentDocBlock = true |
| 19 | ): array; |
| 20 | |
| 21 | public function isRequired(): bool; |
| 22 | |
| 23 | public function isField(): bool; |
| 24 | |
| 25 | public function appliesToContext(ApieContext $apieContext): bool; |
| 26 | |
| 27 | public function getFieldPriority(): ?int; |
| 28 | |
| 29 | public function getTypehint(): ?ReflectionType; |
| 30 | |
| 31 | public function allowsNull(): bool; |
| 32 | } |