<?php
namespace App\Entity;
use App\Repository\ProductDescriptionRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProductDescriptionRepository::class)
*/
class ProductDescription
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $synthetiqueMessage;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $photo1;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $photo2;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $details;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $photo3;
/**
* @ORM\OneToOne(targetEntity=Product::class, inversedBy="productDescription", cascade={"persist", "remove"})
*/
private $product;
public function getId(): ?int
{
return $this->id;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getSynthetiqueMessage(): ?string
{
return $this->synthetiqueMessage;
}
public function setSynthetiqueMessage(?string $synthetiqueMessage): self
{
$this->synthetiqueMessage = $synthetiqueMessage;
return $this;
}
public function getPhoto1()
{
return $this->photo1;
}
public function setPhoto1($photo1): self
{
$this->photo1 = $photo1;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getPhoto2()
{
return $this->photo2;
}
public function setPhoto2($photo2): self
{
$this->photo2 = $photo2;
return $this;
}
public function getDetails()
{
return $this->details;
}
public function setDetails($details): self
{
$this->details = $details;
return $this;
}
public function getPhoto3()
{
return $this->photo3;
}
public function setPhoto3($photo3): self
{
$this->photo3 = $photo3;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
}