Total Complexity | 6 |
Total Lines | 70 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
14 | class FileData |
||
15 | { |
||
16 | /** |
||
17 | * @Groups({"default"}) |
||
18 | * @var string|null |
||
19 | */ |
||
20 | private $publicPath; |
||
21 | |||
22 | /** |
||
23 | * @Groups({"default"}) |
||
24 | * @var string|null |
||
25 | */ |
||
26 | private $fileExtension; |
||
27 | |||
28 | /** |
||
29 | * @Groups({"default"}) |
||
30 | * @var int|null |
||
31 | */ |
||
32 | private $fileSize; |
||
33 | |||
34 | /** |
||
35 | * @Groups({"default"}) |
||
36 | * @var ImageMetadata|null |
||
37 | */ |
||
38 | private $imageData; |
||
39 | |||
40 | /** |
||
41 | * @Groups({"default"}) |
||
42 | * @var ImageMetadata[]|null |
||
43 | */ |
||
44 | private $imagineData; |
||
45 | |||
46 | public function __construct( |
||
47 | ?string $publicPath, |
||
48 | ?ImageMetadata $imageData, |
||
49 | ?array $imagineData, |
||
50 | ?string $fileExtension, |
||
51 | ?int $fileSize |
||
52 | ) |
||
53 | { |
||
54 | $this->publicPath = $publicPath; |
||
55 | $this->imageData = $imageData; |
||
56 | $this->imagineData = $imagineData; |
||
57 | $this->fileExtension = $fileExtension; |
||
58 | $this->fileSize = $fileSize; |
||
59 | } |
||
60 | |||
61 | public function getPublicPath(): ?string |
||
62 | { |
||
63 | return $this->publicPath; |
||
64 | } |
||
65 | |||
66 | public function getImageData(): ?ImageMetadata |
||
69 | } |
||
70 | |||
71 | public function getImagineData(): ?array |
||
72 | { |
||
73 | return $this->imagineData; |
||
74 | } |
||
75 | |||
76 | public function getFileExtension(): ?string |
||
77 | { |
||
78 | return $this->fileExtension; |
||
79 | } |
||
80 | |||
81 | public function getFileSize(): ?float |
||
84 | } |
||
85 | } |
||
86 |