Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
16 | class OrganizationImageMetadata extends BaseImageMetadata |
||
17 | { |
||
18 | /** |
||
19 | * Organization which belongs to the company logo |
||
20 | * @ODM\ReferenceOne(targetDocument="Organizations\Entity\Organization", storeAs="id") |
||
21 | */ |
||
22 | protected ?OrganizationInterface $organization; |
||
23 | |||
24 | public function getResourceId() |
||
25 | { |
||
26 | return 'Entity/OrganizationImage'; |
||
27 | } |
||
28 | |||
29 | public function getOwnerFileClass(): string |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return OrganizationInterface|null |
||
36 | */ |
||
37 | public function getOrganization(): ?OrganizationInterface |
||
38 | { |
||
39 | return $this->organization; |
||
40 | } |
||
41 | |||
42 | public function setOrganization(?OrganizationInterface $organization) |
||
46 | } |
||
47 | } |