| Total Complexity | 6 |
| Total Lines | 56 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class Photo |
||
| 15 | { |
||
| 16 | use EntityIdTrait; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @ORM\ManyToOne(targetEntity="App\Entity\Property", inversedBy="photos") |
||
| 20 | * @ORM\JoinColumn(nullable=true) |
||
| 21 | */ |
||
| 22 | private $property; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @ORM\Column(type="string", length=255) |
||
| 26 | * |
||
| 27 | * @Assert\File(mimeTypes={ "image/*" }) |
||
| 28 | */ |
||
| 29 | private $photo; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @ORM\Column(type="integer", nullable=true) |
||
| 33 | */ |
||
| 34 | private ?int $sort_order; |
||
| 35 | |||
| 36 | public function getProperty(): ?Property |
||
| 37 | { |
||
| 38 | return $this->property; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function setProperty(?Property $property): self |
||
| 42 | { |
||
| 43 | $this->property = $property; |
||
| 44 | |||
| 45 | return $this; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getPhoto() |
||
| 49 | { |
||
| 50 | return $this->photo; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function setPhoto(string $photo): self |
||
| 58 | } |
||
| 59 | |||
| 60 | public function getSortOrder(): ?int |
||
| 61 | { |
||
| 63 | } |
||
| 64 | |||
| 65 | public function setSortOrder(?int $sort_order): self |
||
| 72 |