<?php
namespace App\Entity\Produit\Service;
use App\Repository\Produit\Service\CommentairearticleRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="`commentairearticle`")
* @ORM\Entity(repositoryClass=CommentairearticleRepository::class)
*/
class Commentairearticle
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="text")
*/
private $comment;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $siteweb;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nameAuthor;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @ORM\ManyToOne(targetEntity=Article::class)
* @ORM\JoinColumn(nullable=false)
*/
private $article;
public function __construct()
{
$this->createdAt = new \Datetime();
}
public function getId(): ?int
{
return $this->id;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getSiteweb(): ?string
{
return $this->siteweb;
}
public function setSiteweb(?string $siteweb): self
{
$this->siteweb = $siteweb;
return $this;
}
public function getNameAuthor(): ?string
{
return $this->nameAuthor;
}
public function setNameAuthor(?string $nameAuthor): self
{
$this->nameAuthor = $nameAuthor;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getArticle(): ?Article
{
return $this->article;
}
public function setArticle(?Article $article): self
{
$this->article = $article;
return $this;
}
}