src/JuridicusBundle/Entity/Empfehlung.php line 13

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. /**
  6.  * Empfehlung
  7.  *
  8.  * @ORM\Entity
  9.  */
  10. class Empfehlung
  11. {
  12.     const CLASSNAME __CLASS__;
  13.     
  14.     /**
  15.      * @var integer
  16.      */
  17.     private $id;
  18.     /**
  19.      * @var string
  20.      * @Assert\NotBlank
  21.      * @Assert\Email
  22.      * @Assert\Length(max="255")
  23.      */
  24.     private $email;
  25.     /**
  26.      *
  27.      * @var boolean
  28.      */
  29.     private $registriert;
  30.     /**
  31.      * @var \DateTime
  32.      * @Assert\Type(\DateTimeInterface::class)
  33.      */
  34.     private $created_at;
  35.     /**
  36.      * @var \JF\JuridicusBundle\Entity\Kunde
  37.      * @Assert\Valid
  38.      */
  39.     private $kunde;
  40.     /**
  41.      * Get id
  42.      *
  43.      * @return integer
  44.      */
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     /**
  50.      * Set email
  51.      *
  52.      * @param string $email
  53.      * @return Empfehlung
  54.      */
  55.     public function setEmail($email)
  56.     {
  57.         $this->email $email;
  58.         return $this;
  59.     }
  60.     /**
  61.      * Get email
  62.      *
  63.      * @return string
  64.      */
  65.     public function getEmail()
  66.     {
  67.         return $this->email;
  68.     }
  69.     /**
  70.      * Set registriert
  71.      *
  72.      * @param string $registriert
  73.      * @return Empfehlung
  74.      */
  75.     public function setRegistriert($registriert)
  76.     {
  77.         $this->registriert $registriert;
  78.         return $this;
  79.     }
  80.     /**
  81.      * Get registriert
  82.      *
  83.      * @return boolean
  84.      */
  85.     public function getRegistriert()
  86.     {
  87.         return $this->registriert;
  88.     }
  89.     /**
  90.      * Set created_at
  91.      *
  92.      * @param \DateTime $createdAt
  93.      * @return Empfehlung
  94.      */
  95.     public function setCreatedAt($createdAt)
  96.     {
  97.         $this->created_at $createdAt;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get created_at
  102.      *
  103.      * @return \DateTime
  104.      */
  105.     public function getCreatedAt()
  106.     {
  107.         return $this->created_at;
  108.     }
  109.     /**
  110.      * Set kunde [OWNING SIDE]
  111.      *
  112.      * @param \JF\JuridicusBundle\Entity\Kunde $kunde
  113.      * @return Empfehlung
  114.      */
  115.     public function setKunde(\JF\JuridicusBundle\Entity\Kunde $kunde null)
  116.     {
  117.         $this->kunde $kunde;
  118.         return $this;
  119.     }
  120.     /**
  121.      * Get kunde
  122.      *
  123.      * @return \JF\JuridicusBundle\Entity\Kunde
  124.      */
  125.     public function getKunde()
  126.     {
  127.         return $this->kunde;
  128.     }
  129.     /**
  130.      * __toString
  131.      *
  132.      * @return string
  133.      */
  134.     public function __toString()
  135.     {
  136.         return sprintf'%s (%s)' ,$this->email$this->created_at->format('d.m.Y H:i:s') );
  137.     }
  138. }