src/JuridicusBundle/Entity/Download.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.  * Download
  8.  */
  9. class Download
  10. {
  11.     const CLASSNAME __CLASS__;
  12.     
  13.     /**
  14.      * @var integer
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var integer
  19.      * @Assert\NotBlank
  20.      * @Assert\Range(min="1")
  21.      */
  22.     private $anzahl_protokolle;
  23.     /**
  24.      * @var \DateTime
  25.      * @Assert\Type(\DateTimeInterface::class)
  26.      */
  27.     private $created_at;
  28.     /**
  29.      * @var \DateTime
  30.      * @Assert\Type(\DateTimeInterface::class)
  31.      */
  32.     private $updated_at;
  33.     /**
  34.      * @var \JF\JuridicusBundle\Entity\Kunde
  35.       * @Assert\Valid      
  36.      */
  37.     private $kunde;
  38.     /**
  39.      * @var \JF\JuridicusBundle\Entity\Pruefer
  40.      * @Assert\Valid
  41.      */
  42.     private $pruefer;
  43.     /**
  44.      * @var integer
  45.      */
  46.     private $examen;
  47.     
  48.     /**
  49.      * @var \JF\JuridicusBundle\Entity\KundePruefung
  50.      */
  51.     private $buchung;
  52.     /**
  53.      * Get id
  54.      *
  55.      * @return integer 
  56.      */
  57.     public function getId()
  58.     {
  59.         return $this->id;
  60.     }
  61.     /**
  62.      * Set anzahl_protokolle
  63.      *
  64.      * @param integer $anzahlProtokolle
  65.      * @return Download
  66.      */
  67.     public function setAnzahlProtokolle($anzahlProtokolle)
  68.     {
  69.         $this->anzahl_protokolle $anzahlProtokolle;
  70.     
  71.         return $this;
  72.     }
  73.     /**
  74.      * Get anzahl_protokolle
  75.      *
  76.      * @return integer 
  77.      */
  78.     public function getAnzahlProtokolle()
  79.     {
  80.         return $this->anzahl_protokolle;
  81.     }
  82.     /**
  83.      * Set created_at
  84.      *
  85.      * @param \DateTime $createdAt
  86.      * @return Download
  87.      */
  88.     public function setCreatedAt($createdAt)
  89.     {
  90.         $this->created_at $createdAt;
  91.     
  92.         return $this;
  93.     }
  94.     /**
  95.      * Get created_at
  96.      *
  97.      * @return \DateTime 
  98.      */
  99.     public function getCreatedAt()
  100.     {
  101.         return $this->created_at;
  102.     }
  103.     /**
  104.      * Set updated_at
  105.      *
  106.      * @param \DateTime $updatedAt
  107.      * @return Download
  108.      */
  109.     public function setUpdatedAt($updatedAt)
  110.     {
  111.         $this->updated_at $updatedAt;
  112.     
  113.         return $this;
  114.     }
  115.     /**
  116.      * Get updated_at
  117.      *
  118.      * @return \DateTime 
  119.      */
  120.     public function getUpdatedAt()
  121.     {
  122.         return $this->updated_at;
  123.     }
  124.     /**
  125.      * Set examen
  126.      *
  127.      * @param integer $examen
  128.      * @return Download
  129.      */
  130.     public function setExamen($examen)
  131.     {
  132.         $this->examen $examen;
  133.     
  134.         return $this;
  135.     }
  136.     /**
  137.      * Get examen
  138.      *
  139.      * @return integer 
  140.      */
  141.     public function getExamen()
  142.     {
  143.         return $this->examen;
  144.     }
  145.     
  146.     /**
  147.      * Set kunde [OWNING SIDE]
  148.      *
  149.      * @param \JF\JuridicusBundle\Entity\Kunde $kunde
  150.      * @return Download
  151.      */
  152.     public function setKunde(\JF\JuridicusBundle\Entity\Kunde $kunde null)
  153.     {
  154.         $this->kunde $kunde;
  155.     
  156.         return $this;
  157.     }
  158.     /**
  159.      * Get kunde
  160.      *
  161.      * @return \JF\JuridicusBundle\Entity\Kunde 
  162.      */
  163.     public function getKunde()
  164.     {
  165.         return $this->kunde;
  166.     }
  167.     /**
  168.      * Set pruefer [OWNING SIDE]
  169.      *
  170.      * @param \JF\JuridicusBundle\Entity\Pruefer $pruefer
  171.      * @return Download
  172.      */
  173.     public function setPruefer(\JF\JuridicusBundle\Entity\Pruefer $pruefer null)
  174.     {
  175.         $this->pruefer $pruefer;
  176.     
  177.         return $this;
  178.     }
  179.     /**
  180.      * Get pruefer
  181.      *
  182.      * @return \JF\JuridicusBundle\Entity\Pruefer 
  183.      */
  184.     public function getPruefer()
  185.     {
  186.         return $this->pruefer;
  187.     }
  188.     
  189.     /**
  190.      * String Representation
  191.      *
  192.      * @return string
  193.      */
  194.     public function __toString()
  195.     {
  196.         return sprintf'%s %s'$this->created_at->format('d.m.Y H:i:s'), $this->pruefer->getFullText());        
  197.     }
  198.     /**
  199.      * Set buchung
  200.      *
  201.      * @param \JF\JuridicusBundle\Entity\KundePruefung $buchung
  202.      * @return Download
  203.      */
  204.     public function setBuchung(\JF\JuridicusBundle\Entity\KundePruefung $buchung null)
  205.     {
  206.         $this->buchung $buchung;
  207.     
  208.         return $this;
  209.     }
  210.     /**
  211.      * Get buchung
  212.      *
  213.      * @return \JF\JuridicusBundle\Entity\KundePruefung 
  214.      */
  215.     public function getBuchung()
  216.     {
  217.         return $this->buchung;
  218.     }
  219. }