src/JuridicusBundle/Entity/PdfStempel.php line 12

Open in your IDE?
  1. <?php
  2. namespace JF\JuridicusBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * PdfStempel
  8.  */
  9. class PdfStempel extends Pdf
  10. {
  11.     const CLASSNAME __CLASS__;
  12.     
  13.     /**
  14.      * @var \DateTime
  15.      * @Assert\Type(\DateTimeInterface::class)
  16.      */
  17.     private $created_at;
  18.     /**
  19.      * @var \DateTime
  20.      * @Assert\Type(\DateTimeInterface::class)
  21.      */
  22.     private $updated_at;
  23.    /**
  24.      * @var \JF\JuridicusBundle\Entity\Kunde
  25.      * @Assert\Valid
  26.      * @Assert\NotNull
  27.      */
  28.     private $kunde;
  29.     /**
  30.      * Set created_at
  31.      *
  32.      * @param \DateTime $createdAt
  33.      * @return PdfStempel
  34.      */
  35.     public function setCreatedAt($createdAt)
  36.     {
  37.         $this->created_at $createdAt;
  38.         return $this;
  39.     }
  40.     /**
  41.      * Get created_at
  42.      *
  43.      * @return \DateTime
  44.      */
  45.     public function getCreatedAt()
  46.     {
  47.         return $this->created_at;
  48.     }
  49.     /**
  50.      * Set updated_at
  51.      *
  52.      * @param \DateTime $updatedAt
  53.      * @return PdfStempel
  54.      */
  55.     public function setUpdatedAt($updatedAt)
  56.     {
  57.         $this->updated_at $updatedAt;
  58.         return $this;
  59.     }
  60.     /**
  61.      * Get updated_at
  62.      *
  63.      * @return \DateTime
  64.      */
  65.     public function getUpdatedAt()
  66.     {
  67.         return $this->updated_at;
  68.     }
  69.     /**
  70.      * Set kunde [OWNING SIDE]
  71.      *
  72.      * @param \JF\JuridicusBundle\Entity\Kunde $kunde
  73.      * @return PdfStempel
  74.      */
  75.     public function setKunde(Kunde $kunde null)
  76.     {
  77.         $this->kunde $kunde;
  78.         return $this;
  79.     }
  80.     /**
  81.      * Get kunde
  82.      *
  83.      * @return \JF\JuridicusBundle\Entity\Kunde
  84.      */
  85.     public function getKunde()
  86.     {
  87.         return $this->kunde;
  88.     }
  89.     /**
  90.      * Get dir
  91.      *
  92.      * @return string
  93.      */
  94.     public function getDir()
  95.     {
  96.         return realpath__DIR__ '/../../../../app/files/pdf/stempel' );
  97.     }
  98.     /**
  99.      *
  100.      * @return string
  101.      */
  102.     public function __toString()
  103.     {
  104.         return $this->path;
  105.     }
  106. }