<?php/* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */namespace App\Entity;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity() * @ORM\Table(name="media") * * Defines the properties of the Tag entity to represent the article tags. * * See https://symfony.com/doc/current/doctrine.html#creating-an-entity-class * * @author Yonel Ceruto <yonelceruto@gmail.com> */class Media { /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private ?int $id = null; /** * @ORM\Column(type="string") */ private ?string $path = null; /** * @ORM\Column(type="boolean") */ private $enabled; /** * @ORM\ManyToOne(targetEntity="App\Entity\Hebergement", inversedBy="medias") */ private $hebergement; /** * @ORM\ManyToOne(targetEntity="App\Entity\Experience", inversedBy="medias") */ private $experience; /** * @ORM\Column(type="string", nullable=true) */ private ?string $ordre = null; public function getId(): ?int { return $this->id; } public function getPath(): ?string { return $this->path; } public function getEnabled() { return $this->enabled; } public function setPath(?string $path): void { $this->path = $path; } public function setEnabled($enabled): void { $this->enabled = $enabled; } public function getHebergement() { return $this->hebergement; } public function getExperience() { return $this->experience; } public function setHebergement($hebergement): void { $this->hebergement = $hebergement; } public function setExperience($experience): void { $this->experience = $experience; } public function getOrdre(): ?string { return $this->ordre; } public function setOrdre(?string $ordre): void { $this->ordre = $ordre; }}