src/Entity/VideoEmbedded.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Validator as AppAssert;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Embeddable
  8.  * @AppAssert\EmbeddedVideoValid()
  9.  */
  10. class VideoEmbedded
  11. {
  12.     /**
  13.      * @var string
  14.      *
  15.      * @ORM\Column(type="string", length=64, nullable=true)
  16.      * @Assert\Length(max=64)
  17.      * @Assert\NotBlank()
  18.      */
  19.     private $host;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(type="string", length=64, nullable=true)
  24.      * @Assert\Length(max=64)
  25.      * @Assert\NotBlank()
  26.      */
  27.     private $id;
  28.     public function getHost(): ?string
  29.     {
  30.         return $this->host;
  31.     }
  32.     public function setHost(?string $host): self
  33.     {
  34.         $this->host $host;
  35.         return $this;
  36.     }
  37.     public function getId(): ?string
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function setId(?string $id): self
  42.     {
  43.         $this->id $id;
  44.         return $this;
  45.     }
  46. }