<?php
namespace Cms\DomainBundle\Entity\SslCertificates;
use Cms\DomainBundle\Entity\Embeddables\LetsEncryptCertificateStateEmbeddable;
use Cms\DomainBundle\Entity\SslCertificate;
use Doctrine\ORM\Mapping as ORM;
/**
* Class LetsEncryptSslCertificate
* @package Cms\DomainBundle\Entity\SslCertificates
*
* @ORM\Entity
*/
class LetsEncryptSslCertificate extends SslCertificate
{
const DISCR = 'lets-encrypt';
/**
* @var LetsEncryptCertificateStateEmbeddable
*
* @ORM\Embedded(
* class = "Cms\DomainBundle\Entity\Embeddables\LetsEncryptCertificateStateEmbeddable",
* columnPrefix = "le_"
* )
*/
protected $state;
/**
* {@inheritdoc}
*/
public function __construct()
{
parent::__construct();
$this->state = new LetsEncryptCertificateStateEmbeddable();
}
/**
* @return LetsEncryptCertificateStateEmbeddable
*/
public function getState()
{
return $this->state;
}
}