<?php
namespace App\Entity\FO;
use App\Entity\Articles\Article;
use App\Repository\FO\FoDocumentArticleRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=FoDocumentArticleRepository::class)
*/
class FoDocumentArticle
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $date;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Articles\Article")
*/
private $article;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\FO\FoDocument")
*/
private $document;
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(?\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getArticle(): ?Article
{
return $this->article;
}
public function setArticle(?Article $article): self
{
$this->article = $article;
return $this;
}
public function getDocument(): ?FoDocument
{
return $this->document;
}
public function setDocument(?FoDocument $document): self
{
$this->document = $document;
return $this;
}
}