Total Complexity | 6 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | class AccountingDocument extends AbstractFile |
||
15 | { |
||
16 | 2 | protected function getBasePath(): string |
|
17 | { |
||
18 | 2 | return 'data/accounting/'; |
|
19 | } |
||
20 | |||
21 | 1 | protected function getAcceptedMimeTypes(): array |
|
22 | { |
||
23 | return [ |
||
24 | 1 | 'image/bmp', |
|
25 | 'image/gif', |
||
26 | 'image/jpeg', |
||
27 | 'image/pjpeg', |
||
28 | 'image/png', |
||
29 | 'image/webp', |
||
30 | 'application/pdf', |
||
31 | 'application/x-pdf', |
||
32 | ]; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @var ExpenseClaim |
||
37 | * |
||
38 | * @ORM\ManyToOne(targetEntity="ExpenseClaim", inversedBy="accountingDocuments") |
||
39 | * @ORM\JoinColumns({ |
||
40 | * @ORM\JoinColumn(nullable=false, onDelete="CASCADE") |
||
41 | * }) |
||
42 | */ |
||
43 | private $expenseClaim; |
||
44 | |||
45 | /** |
||
46 | * @param ExpenseClaim $expenseClaim |
||
47 | */ |
||
48 | 2 | public function setExpenseClaim(ExpenseClaim $expenseClaim): void |
|
56 | 2 | } |
|
57 | |||
58 | /** |
||
59 | * @return ExpenseClaim |
||
60 | */ |
||
61 | 1 | public function getExpenseClaim(): ExpenseClaim |
|
64 | } |
||
65 | } |
||
66 |