<?phpnamespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\HttpFoundation\File\File;use Vich\UploaderBundle\Mapping\Annotation as Vich;/** * @ORM\Entity(repositoryClass=App\Repository\ApplicationRepository::class) * @ORM\Table(name="application", schema="bdnf", options={"comment":"Contient les urls de téléchargement des applications "}) * */class Application{ public function __construct() { } public function __toString() { return $this->getTitle(); } public function toArray() { return [ 'title' => $this->getTitle(), 'lastUpdate' => $this->getLastUpdate() ]; } /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer", options={"comment":"Identifiant unique de l'application"}) */ private $id; /** * @ORM\Column(type="string", options={"comment":"Titre de l'application"}) */ private $title; /** * @ORM\Column(type="string" , options={"comment":"Type de l'application"}) */ private $type; /** * @ORM\Column(type="string" , options={"comment":"Lien de téléchargement de l'application"}) */ private $downloadLink; /** * @ORM\Column(type="datetime", nullable=true , options={"comment":"Date de la dernière mise à jour de l'application"}) */ private $lastUpdate; /** * @return mixed */ public function getId() { return $this->id; } /** * @param mixed $id */ public function setId($id): void { $this->id = $id; } /** * @return mixed */ public function getTitle() { return $this->title; } /** * @param mixed $title */ public function setTitle($title): void { $this->title = $title; } /** * @return mixed */ public function getLastUpdate() { return $this->lastUpdate; } /** * @param mixed $lastUpdate */ public function setLastUpdate($lastUpdate): void { $this->lastUpdate = $lastUpdate; } /** * @return mixed */ public function getType() { return $this->type; } /** * @param mixed $type */ public function setType($type): void { $this->type = $type; } /** * @return mixed */ public function getDownloadLink() { return $this->downloadLink; } /** * @param mixed $downloadLink */ public function setDownloadLink($downloadLink): void { $this->downloadLink = $downloadLink; }}