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