src/JuridicusBundle/Entity/PrueferUser.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. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. use JF\JuridicusBundle\Validator\Constraints as JfAssert;
  7. /**
  8.  * PrüferUser
  9.  * @ORM\Entity
  10.  */
  11. class PrueferUser extends InitModeEntity
  12. {
  13.     const CLASSNAME __CLASS__;
  14.     
  15.     public function  __construct() {
  16.         $this->setCreatedAt(new \DateTime('now +1 hour') );
  17.     }
  18.     /**
  19.      * @var integer
  20.      */
  21.     private $id;
  22.     
  23.     /**
  24.      * @var \JF\JuridicusBundle\Entity\User
  25.      * @Assert\Valid
  26.      */
  27.     private $user;
  28.     
  29.     /**
  30.      * @var \DateTime
  31.      */
  32.     private $created_at;
  33.     /**
  34.      * @var string
  35.      * @Assert\Length(max="63")
  36.      */
  37.     private $vorname;
  38.     /**
  39.      * @var string
  40.      * @Assert\Length(max="12")
  41.      */
  42.     private $adel;
  43.     /**
  44.      * @var string
  45.      * @Assert\NotBlank
  46.      * @Assert\Length(max="63")
  47.      */
  48.     private $nachname;
  49.   
  50.     /**
  51.      * @var \JF\JuridicusBundle\Entity\Titel
  52.      */
  53.     private $titel;
  54.     
  55.         /**
  56.      * @var string
  57.      * @Assert\NotBlank(message="Die E-Mail-Adresse darf nicht leer sein.")
  58.      * @Assert\Email
  59.      * @Assert\Length(max="128")
  60.      */
  61.     private $email;
  62.     /**
  63.      * Get id.
  64.      *
  65.      * @return int
  66.      */
  67.     public function getId()
  68.     {
  69.         return $this->id;
  70.     }
  71.     /**
  72.      * Set vorname.
  73.      *
  74.      * @param string|null $vorname
  75.      *
  76.      * @return PrueferUser
  77.      */
  78.     public function setVorname($vorname null)
  79.     {
  80.         $this->vorname $vorname;
  81.         return $this;
  82.     }
  83.     /**
  84.      * Get vorname.
  85.      *
  86.      * @return string|null
  87.      */
  88.     public function getVorname()
  89.     {
  90.         return $this->vorname;
  91.     }
  92.     /**
  93.      * Set nachname.
  94.      *
  95.      * @param string $nachname
  96.      *
  97.      * @return PrueferUser
  98.      */
  99.     public function setNachname($nachname)
  100.     {
  101.         $this->nachname $nachname;
  102.         return $this;
  103.     }
  104.     /**
  105.      * Get nachname.
  106.      *
  107.      * @return string
  108.      */
  109.     public function getNachname()
  110.     {
  111.         return $this->nachname;
  112.     }
  113.     /**
  114.      * Set adel.
  115.      *
  116.      * @param string|null $adel
  117.      *
  118.      * @return PrueferUser
  119.      */
  120.     public function setAdel($adel null)
  121.     {
  122.         $this->adel $adel;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get adel.
  127.      *
  128.      * @return string|null
  129.      */
  130.     public function getAdel()
  131.     {
  132.         return $this->adel;
  133.     }
  134.     /**
  135.      * Set createdAt.
  136.      *
  137.      * @param \DateTime|null $createdAt
  138.      *
  139.      * @return PrueferUser
  140.      */
  141.     public function setCreatedAt($createdAt null)
  142.     {
  143.         $this->created_at $createdAt;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get createdAt.
  148.      *
  149.      * @return \DateTime|null
  150.      */
  151.     public function getCreatedAt()
  152.     {
  153.         return $this->created_at;
  154.     }
  155.     /**
  156.      * Set titel.
  157.      *
  158.      * @param \JF\JuridicusBundle\Entity\Titel|null $titel
  159.      *
  160.      * @return PrueferUser
  161.      */
  162.     public function setTitel(\JF\JuridicusBundle\Entity\Titel $titel null)
  163.     {
  164.         $this->titel $titel;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get titel.
  169.      *
  170.      * @return \JF\JuridicusBundle\Entity\Titel|null
  171.      */
  172.     public function getTitel()
  173.     {
  174.         return $this->titel;
  175.     }
  176.     /**
  177.      * Set user.
  178.      *
  179.      * @param \JF\JuridicusBundle\Entity\User|null $user
  180.      *
  181.      * @return PrueferUser
  182.      */
  183.     public function setUser(\JF\JuridicusBundle\Entity\User $user null)
  184.     {
  185.         $this->user $user;
  186.         return $this;
  187.     }
  188.     /**
  189.      * Get user.
  190.      *
  191.      * @return \JF\JuridicusBundle\Entity\User|null
  192.      */
  193.     public function getUser()
  194.     {
  195.         return $this->user;
  196.     }
  197.     /**
  198.      * @var \JF\JuridicusBundle\Entity\Pruefer
  199.      */
  200.     private $pruefer;
  201.     /**
  202.      * Set pruefer.
  203.      *
  204.      * @param \JF\JuridicusBundle\Entity\Pruefer|null $pruefer
  205.      *
  206.      * @return PrueferUser
  207.      */
  208.     public function setPruefer(\JF\JuridicusBundle\Entity\Pruefer $pruefer null)
  209.     {
  210.         $this->pruefer $pruefer;
  211.         return $this;
  212.     }
  213.     /**
  214.      * Get pruefer.
  215.      *
  216.      * @return \JF\JuridicusBundle\Entity\Pruefer|null
  217.      */
  218.     public function getPruefer()
  219.     {
  220.         return $this->pruefer;
  221.     }
  222.     /**
  223.      * Set email.
  224.      *
  225.      * @param string $email
  226.      *
  227.      * @return PrueferUser
  228.      */
  229.     public function setEmail($email)
  230.     {
  231.         $this->email $email;
  232.         return $this;
  233.     }
  234.     /**
  235.      * Get email.
  236.      *
  237.      * @return string
  238.      */
  239.     public function getEmail()
  240.     {
  241.         return $this->email;
  242.     }
  243.     /**
  244.      * @var \DateTime|null
  245.      */
  246.     private $sms_send_at;
  247.     /**
  248.      * @var int|null
  249.      */
  250.     private $sms_status_id;
  251.     /**
  252.      * Set smsSendAt.
  253.      *
  254.      * @param \DateTime|null $smsSendAt
  255.      *
  256.      * @return PrueferUser
  257.      */
  258.     public function setSmsSendAt($smsSendAt null)
  259.     {
  260.         $this->sms_send_at $smsSendAt;
  261.         return $this;
  262.     }
  263.     /**
  264.      * Get smsSendAt.
  265.      *
  266.      * @return \DateTime|null
  267.      */
  268.     public function getSmsSendAt()
  269.     {
  270.         return $this->sms_send_at;
  271.     }
  272.     /**
  273.      * Set smsStatusId.
  274.      *
  275.      * @param int|null $smsStatusId
  276.      *
  277.      * @return PrueferUser
  278.      */
  279.     public function setSmsStatusId($smsStatusId null)
  280.     {
  281.         $this->sms_status_id $smsStatusId;
  282.         return $this;
  283.     }
  284.     /**
  285.      * Get smsStatusId.
  286.      *
  287.      * @return int|null
  288.      */
  289.     public function getSmsStatusId()
  290.     {
  291.         return $this->sms_status_id;
  292.     }
  293.     /**
  294.      * @var string|null
  295.      */
  296.     private $works_at;
  297.     /**
  298.      * @var \JF\JuridicusBundle\Entity\Dienststellung
  299.      */
  300.     private $dienststellung;
  301.     /**
  302.      * Set worksAt.
  303.      *
  304.      * @param string|null $worksAt
  305.      *
  306.      * @return PrueferUser
  307.      */
  308.     public function setWorksAt($worksAt null)
  309.     {
  310.         $this->works_at $worksAt;
  311.         return $this;
  312.     }
  313.     /**
  314.      * Get worksAt.
  315.      *
  316.      * @return string|null
  317.      */
  318.     public function getWorksAt()
  319.     {
  320.         return $this->works_at;
  321.     }
  322.     /**
  323.      * Set dienststellung.
  324.      *
  325.      * @param \JF\JuridicusBundle\Entity\Dienststellung|null $dienststellung
  326.      *
  327.      * @return PrueferUser
  328.      */
  329.     public function setDienststellung(\JF\JuridicusBundle\Entity\Dienststellung $dienststellung null)
  330.     {
  331.         $this->dienststellung $dienststellung;
  332.         return $this;
  333.     }
  334.     /**
  335.      * Get dienststellung.
  336.      *
  337.      * @return \JF\JuridicusBundle\Entity\Dienststellung|null
  338.      */
  339.     public function getDienststellung()
  340.     {
  341.         return $this->dienststellung;
  342.     }
  343.     /**
  344.      * @var string|null
  345.      */
  346.     private $funktion;
  347.     /**
  348.      * Set funktion.
  349.      *
  350.      * @param string|null $funktion
  351.      *
  352.      * @return PrueferUser
  353.      */
  354.     public function setFunktion($funktion null)
  355.     {
  356.         $this->funktion $funktion;
  357.         return $this;
  358.     }
  359.     /**
  360.      * Get funktion.
  361.      *
  362.      * @return string|null
  363.      */
  364.     public function getFunktion()
  365.     {
  366.         return $this->funktion;
  367.     }
  368. }