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