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