src/Entity/Maintenance.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\MaintenanceRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
  6. use Symfony\Component\Security\Core\User\UserInterface;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. /**
  9.  * @ORM\Entity(repositoryClass=MaintenanceRepository::class)
  10.  */
  11. class Maintenance implements  PasswordAuthenticatedUserInterface
  12. {
  13.     /**
  14.      * @ORM\Id
  15.      * @ORM\GeneratedValue
  16.      * @ORM\Column(type="integer")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $title;
  23.     /**
  24.      * @ORM\Column(type="string", length=255, nullable=true)
  25.      */
  26.     private $subtitle;
  27.     /**
  28.      * @ORM\Column(type="string", length=15, nullable=true)
  29.      */
  30.     private $phone;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $iframeYoutube;
  35.     /**
  36.      * @var string The hashed password
  37.      * @ORM\Column(type="string")
  38.      * @Assert\NotBlank(message="Veuillez entrer un mot de passe")
  39.      */
  40.     private $password;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $plainPassword;
  45.     public function getId(): ?int
  46.     {
  47.         return $this->id;
  48.     }
  49.     public function getTitle(): ?string
  50.     {
  51.         return $this->title;
  52.     }
  53.     public function setTitle(?string $title): self
  54.     {
  55.         $this->title $title;
  56.         return $this;
  57.     }
  58.     public function getSubtitle(): ?string
  59.     {
  60.         return $this->subtitle;
  61.     }
  62.     public function setSubtitle(?string $subtitle): self
  63.     {
  64.         $this->subtitle $subtitle;
  65.         return $this;
  66.     }
  67.     public function getPhone(): ?string
  68.     {
  69.         return $this->phone;
  70.     }
  71.     public function setPhone(?string $phone): self
  72.     {
  73.         $this->phone $phone;
  74.         return $this;
  75.     }
  76.     public function getIframeYoutube(): ?string
  77.     {
  78.         return $this->iframeYoutube;
  79.     }
  80.     public function setIframeYoutube(?string $iframeYoutube): self
  81.     {
  82.         $this->iframeYoutube $iframeYoutube;
  83.         return $this;
  84.     }
  85.     /**
  86.      * @see PasswordAuthenticatedUserInterface
  87.      */
  88.     public function getPassword(): ?string
  89.     {
  90.         return $this->password;
  91.     }
  92.     public function setPassword(string $password): self
  93.     {
  94.         $this->password $password;
  95.         return $this;
  96.     }
  97.     public function getPlainPassword(): ?string
  98.     {
  99.         return $this->plainPassword;
  100.     }
  101.     public function setPlainPassword(string $plainPassword): self
  102.     {
  103.         $this->plainPassword $plainPassword;
  104.         return $this;
  105.     }
  106. }