src/Cms/DomainBundle/Entity/Embeddables/ApexVerificationEmbeddable.php line 14

Open in your IDE?
  1. <?php
  2. namespace Cms\DomainBundle\Entity\Embeddables;
  3. use DateTime;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * Class ApexVerificationEmbeddable
  7.  * @package Cms\DomainBundle\Entity\Embeddables
  8.  *
  9.  * @ORM\Embeddable
  10.  */
  11. class ApexVerificationEmbeddable
  12. {
  13.     /**
  14.      * @var string
  15.      *
  16.      * @ORM\Column(
  17.      *     type = "string",
  18.      *     nullable = false
  19.      * )
  20.      */
  21.     protected $code '';
  22.     /**
  23.      * @var DateTime
  24.      *
  25.      * @ORM\Column(
  26.      *     type = "datetime",
  27.      *     nullable = true
  28.      * )
  29.      */
  30.     protected $date;
  31.     /**
  32.      * @return string
  33.      */
  34.     public function getCode()
  35.     {
  36.         return $this->code;
  37.     }
  38.     /**
  39.      * @param string $value
  40.      * @return $this
  41.      */
  42.     public function setCode($value)
  43.     {
  44.         $this->code $value;
  45.         return $this;
  46.     }
  47.     /**
  48.      * @return DateTime
  49.      */
  50.     public function getVerifiedAt()
  51.     {
  52.         return $this->date;
  53.     }
  54.     /**
  55.      * @param DateTime $value
  56.      * @return $this
  57.      */
  58.     public function setVerifiedAt(DateTime $value)
  59.     {
  60.         $this->date $value;
  61.         return $this;
  62.     }
  63.     /**
  64.      * @return bool
  65.      */
  66.     public function isVerified()
  67.     {
  68.         return ( ! empty($this->getVerifiedAt()));
  69.     }
  70. }