src/Entity/Produit/Service/Commentairearticle.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Produit\Service;
  3. use App\Repository\Produit\Service\CommentairearticleRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Table(name="`commentairearticle`")
  7.  * @ORM\Entity(repositoryClass=CommentairearticleRepository::class)
  8.  */
  9. class Commentairearticle
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="datetime")
  19.      */
  20.     private $createdAt;
  21.     /**
  22.      * @ORM\Column(type="text")
  23.      */
  24.     private $comment;
  25.     /**
  26.      * @ORM\Column(type="string", length=255, nullable=true)
  27.      */
  28.     private $siteweb;
  29.     /**
  30.      * @ORM\Column(type="string", length=255, nullable=true)
  31.      */
  32.     private $nameAuthor;
  33.     /**
  34.      * @ORM\Column(type="string", length=255, nullable=true)
  35.      */
  36.     private $email;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Article::class)
  39.      * @ORM\JoinColumn(nullable=false)
  40.      */
  41.     private $article;
  42.     public function __construct()
  43.     {
  44.         $this->createdAt = new \Datetime();
  45.     }
  46.     public function getId(): ?int
  47.     {
  48.         return $this->id;
  49.     }
  50.     public function getCreatedAt(): ?\DateTimeInterface
  51.     {
  52.         return $this->createdAt;
  53.     }
  54.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  55.     {
  56.         $this->createdAt $createdAt;
  57.         return $this;
  58.     }
  59.     public function getComment(): ?string
  60.     {
  61.         return $this->comment;
  62.     }
  63.     public function setComment(string $comment): self
  64.     {
  65.         $this->comment $comment;
  66.         return $this;
  67.     }
  68.     public function getSiteweb(): ?string
  69.     {
  70.         return $this->siteweb;
  71.     }
  72.     public function setSiteweb(?string $siteweb): self
  73.     {
  74.         $this->siteweb $siteweb;
  75.         return $this;
  76.     }
  77.     public function getNameAuthor(): ?string
  78.     {
  79.         return $this->nameAuthor;
  80.     }
  81.     public function setNameAuthor(?string $nameAuthor): self
  82.     {
  83.         $this->nameAuthor $nameAuthor;
  84.         return $this;
  85.     }
  86.     public function getEmail(): ?string
  87.     {
  88.         return $this->email;
  89.     }
  90.     public function setEmail(?string $email): self
  91.     {
  92.         $this->email $email;
  93.         return $this;
  94.     }
  95.     public function getArticle(): ?Article
  96.     {
  97.         return $this->article;
  98.     }
  99.     public function setArticle(?Article $article): self
  100.     {
  101.         $this->article $article;
  102.         return $this;
  103.     }
  104. }