<?php
namespace Cms\DomainBundle\Entity\Embeddables;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* Class ApexVerificationEmbeddable
* @package Cms\DomainBundle\Entity\Embeddables
*
* @ORM\Embeddable
*/
class ApexVerificationEmbeddable
{
/**
* @var string
*
* @ORM\Column(
* type = "string",
* nullable = false
* )
*/
protected $code = '';
/**
* @var DateTime
*
* @ORM\Column(
* type = "datetime",
* nullable = true
* )
*/
protected $date;
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* @param string $value
* @return $this
*/
public function setCode($value)
{
$this->code = $value;
return $this;
}
/**
* @return DateTime
*/
public function getVerifiedAt()
{
return $this->date;
}
/**
* @param DateTime $value
* @return $this
*/
public function setVerifiedAt(DateTime $value)
{
$this->date = $value;
return $this;
}
/**
* @return bool
*/
public function isVerified()
{
return ( ! empty($this->getVerifiedAt()));
}
}