Total Complexity | 5 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | class ImageMetadata implements FileMetadataInterface, ImageMetadataInterface |
||
16 | { |
||
17 | use EntityTrait, FileMetadataTrait; |
||
18 | |||
19 | /** |
||
20 | * @ODM\Field(type="string", nullable=true) |
||
21 | */ |
||
22 | protected ?string $belongsTo = null; |
||
23 | |||
24 | /** |
||
25 | * @ODM\Field(type="string", nullable=true) |
||
26 | */ |
||
27 | protected ?string $key = null; |
||
28 | |||
29 | public function getOwnerFileClass(): string |
||
30 | { |
||
31 | return Image::class; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return string|null |
||
36 | */ |
||
37 | public function getBelongsTo(): ?string |
||
38 | { |
||
39 | return $this->belongsTo; |
||
40 | } |
||
41 | |||
42 | public function setBelongsTo(?string $belongsTo) |
||
43 | { |
||
44 | $this->belongsTo = $belongsTo; |
||
45 | return $this; |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return string|null |
||
50 | */ |
||
51 | public function getKey(): ?string |
||
52 | { |
||
53 | return $this->key; |
||
54 | } |
||
55 | |||
56 | public function setKey(?string $key) |
||
60 | } |
||
61 | } |