src/Cms/DomainBundle/Entity/SslCertificates/CustomSslCertificate.php line 15

Open in your IDE?
  1. <?php
  2. namespace Cms\DomainBundle\Entity\SslCertificates;
  3. use Cms\DomainBundle\Entity\Embeddables\CustomSslCertificateCsrEmbeddable;
  4. use Cms\DomainBundle\Entity\SslCertificate;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Class CustomSslCertificate
  8.  * @package Cms\DomainBundle\Entity\SslCertificates
  9.  *
  10.  * @ORM\Entity
  11.  */
  12. class CustomSslCertificate extends SslCertificate
  13. {
  14.     const DISCR 'custom';
  15.     /**
  16.      * @var CustomSslCertificateCsrEmbeddable
  17.      *
  18.      * @ORM\Embedded(
  19.      *     class = "Cms\DomainBundle\Entity\Embeddables\CustomSslCertificateCsrEmbeddable",
  20.      *     columnPrefix = "csr_"
  21.      * )
  22.      */
  23.     protected $csr;
  24.     /**
  25.      * {@inheritdoc}
  26.      */
  27.     public function __construct()
  28.     {
  29.         parent::__construct();
  30.         $this->csr = new CustomSslCertificateCsrEmbeddable();
  31.     }
  32.     /**
  33.      * @return CustomSslCertificateCsrEmbeddable
  34.      */
  35.     public function getCsr()
  36.     {
  37.         return $this->csr;
  38.     }
  39. }