<?php
namespace App\Entity;
use App\Validator as AppAssert;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Embeddable
* @AppAssert\EmbeddedVideoValid()
*/
class VideoEmbedded
{
/**
* @var string
*
* @ORM\Column(type="string", length=64, nullable=true)
* @Assert\Length(max=64)
* @Assert\NotBlank()
*/
private $host;
/**
* @var string
*
* @ORM\Column(type="string", length=64, nullable=true)
* @Assert\Length(max=64)
* @Assert\NotBlank()
*/
private $id;
public function getHost(): ?string
{
return $this->host;
}
public function setHost(?string $host): self
{
$this->host = $host;
return $this;
}
public function getId(): ?string
{
return $this->id;
}
public function setId(?string $id): self
{
$this->id = $id;
return $this;
}
}