| Total Complexity | 7 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Media |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @ORM\Id |
||
| 25 | * @ORM\Column(type="integer") |
||
| 26 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 27 | */ |
||
| 28 | protected $id; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @ORM\ManyToOne(targetEntity="Product", inversedBy="medias") |
||
| 32 | */ |
||
| 33 | protected $product; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @ORM\Column(nullable=true) |
||
| 37 | */ |
||
| 38 | protected $url; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @ORM\Column(nullable=true) |
||
| 42 | */ |
||
| 43 | protected $description; |
||
| 44 | |||
| 45 | public function getId(): ?int |
||
| 46 | { |
||
| 47 | return $this->id; |
||
| 48 | } |
||
| 49 | |||
| 50 | public function getProduct(): Product |
||
| 53 | } |
||
| 54 | |||
| 55 | public function setProduct(Product $product): self |
||
| 56 | { |
||
| 57 | $this->product = $product; |
||
| 58 | |||
| 59 | return $this; |
||
| 60 | } |
||
| 61 | |||
| 62 | public function getUrl(): ?string |
||
| 65 | } |
||
| 66 | |||
| 67 | public function setUrl(?string $url): self |
||
| 68 | { |
||
| 69 | $this->url = $url; |
||
| 70 | |||
| 71 | return $this; |
||
| 72 | } |
||
| 73 | |||
| 74 | public function getDescription(): ?string |
||
| 77 | } |
||
| 78 | |||
| 79 | public function setDescription(?string $description): self |
||
| 84 | } |
||
| 85 | } |
||
| 86 |