Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | #[ORM\MappedSuperclass] |
||
18 | #[API\Sorting(PseudoRandom::class)] |
||
19 | #[API\Filter(field: 'id', operator: ModuloOperatorType::class, type: 'int')] |
||
20 | abstract class AbstractModel |
||
21 | { |
||
22 | #[ORM\Column(type: 'integer', options: ['unsigned' => true])] |
||
23 | #[ORM\Id] |
||
24 | #[ORM\GeneratedValue(strategy: 'IDENTITY')] |
||
25 | protected ?int $id = null; |
||
26 | |||
27 | #[ORM\Column(type: 'datetime_immutable')] |
||
28 | private $creationDate; |
||
29 | |||
30 | public function getId(): int |
||
33 | } |
||
34 | |||
35 | #[API\Field(type: DateTimeType::class)] |
||
39 | } |
||
40 | |||
41 | #[API\Input(type: DateTimeType::class)] |
||
47 |