Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | #[ORM\Entity(FacilitatorDocumentRepository::class)] |
||
15 | class FacilitatorDocument extends AbstractModel |
||
16 | { |
||
17 | use HasName; |
||
18 | |||
19 | #[ORM\OneToOne(targetEntity: File::class, orphanRemoval: true)] |
||
20 | #[ORM\JoinColumn(onDelete: 'SET NULL')] |
||
21 | private ?File $file = null; |
||
22 | |||
23 | #[ORM\Column(type: 'string', length: 191)] |
||
24 | private string $category = ''; |
||
25 | |||
26 | public function getFile(): ?File |
||
27 | { |
||
28 | return $this->file; |
||
29 | } |
||
30 | |||
31 | public function setFile(?File $file): void |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Set category. |
||
44 | */ |
||
45 | public function setCategory(string $category): void |
||
46 | { |
||
47 | $this->category = $category; |
||
48 | } |
||
49 | |||
50 | /** |
||
51 | * Get category. |
||
52 | */ |
||
53 | public function getCategory(): string |
||
56 | } |
||
57 | } |
||
58 |