Total Complexity | 6 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | trait FileTrait |
||
24 | { |
||
25 | /** |
||
26 | * @ORM\Column(type="string", nullable=true) |
||
27 | * @ApiProperty(iri="http://schema.org/contentUrl") |
||
28 | */ |
||
29 | private ?string $filePath; |
||
30 | |||
31 | private ?FileData $fileData = null; |
||
32 | |||
33 | public function getFilePath(): ?string |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return static |
||
40 | */ |
||
41 | public function setFilePath(?string $filePath) |
||
42 | { |
||
43 | $this->filePath = $filePath; |
||
44 | |||
45 | return $this; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return static |
||
50 | */ |
||
51 | public function setFileData(FileData $fileData) |
||
52 | { |
||
53 | $this->fileData = $fileData; |
||
54 | |||
55 | return $this; |
||
56 | } |
||
57 | |||
58 | public function getFileData(): ?FileData |
||
61 | } |
||
62 | |||
63 | public static function getImagineFilters(): array |
||
69 | ]; |
||
70 | } |
||
71 | |||
72 | public function getDirectory(): ?string |
||
77 |