| Total Complexity | 3 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | abstract class AbstractField extends AbstractAnnotation |
||
| 16 | { |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Field type. |
||
| 20 | * |
||
| 21 | * @var string|null |
||
| 22 | */ |
||
| 23 | public ?string $type = null; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Field description options. |
||
| 27 | * |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | public array $fieldDescriptionOptions = []; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Field position. |
||
| 34 | * |
||
| 35 | * @var int|null |
||
| 36 | */ |
||
| 37 | public ?int $position = null; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param string|array|null $type Type or annotation |
||
| 41 | * parameters. |
||
| 42 | * @param array $fieldDescriptionOptions Description options. |
||
| 43 | * @param int|null $position Position. |
||
| 44 | * |
||
| 45 | * @throws ReflectionException |
||
| 46 | */ |
||
| 47 | public function __construct( |
||
| 59 | } |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Get field settings. |
||
| 64 | * |
||
| 65 | * @return array |
||
| 66 | */ |
||
| 67 | public function getSettings(): array |
||
| 76 |