<?php
namespace Cms\DomainBundle\Entity\SslCertificates;
use Cms\DomainBundle\Entity\Embeddables\CustomSslCertificateCsrEmbeddable;
use Cms\DomainBundle\Entity\SslCertificate;
use Doctrine\ORM\Mapping as ORM;
/**
* Class CustomSslCertificate
* @package Cms\DomainBundle\Entity\SslCertificates
*
* @ORM\Entity
*/
class CustomSslCertificate extends SslCertificate
{
const DISCR = 'custom';
/**
* @var CustomSslCertificateCsrEmbeddable
*
* @ORM\Embedded(
* class = "Cms\DomainBundle\Entity\Embeddables\CustomSslCertificateCsrEmbeddable",
* columnPrefix = "csr_"
* )
*/
protected $csr;
/**
* {@inheritdoc}
*/
public function __construct()
{
parent::__construct();
$this->csr = new CustomSslCertificateCsrEmbeddable();
}
/**
* @return CustomSslCertificateCsrEmbeddable
*/
public function getCsr()
{
return $this->csr;
}
}