src/OfficeBrain/Bundle/UserBundle/Entity/EmployeeInfo.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\OfficeBrain\Bundle\UserBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Gedmo\Mapping\Annotation as Gedmo;
  5. /**
  6.  * EmployeeInfo
  7.  *
  8.  * @ORM\Table(name="tbl_employee_info")
  9.  * @ORM\Entity(repositoryClass="App\OfficeBrain\Bundle\UserBundle\Entity\EmployeeInfoRepository")
  10.  */
  11. class EmployeeInfo
  12. {
  13.     /**
  14.      * @var integer
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     // @ORM\ManyToOne(targetEntity="\App\project\OfficeBrain\CustomBundle\UserBundle\Entity\User", inversedBy="employeeInfo")
  22.      /**
  23.      * @var integer
  24.      * @ORM\ManyToOne(targetEntity="\App\OfficeBrain\Bundle\UserBundle\Entity\User", inversedBy="employeeInfo")
  25.      * @ORM\JoinColumn(name="user_id",referencedColumnName="id")
  26.      */
  27.     private $user;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="position", type="text", options={"collate"="utf8_unicode_ci"}, nullable=true)
  32.      */
  33.     private $position;
  34.     
  35.     /**
  36.      * @var string
  37.      *
  38.      * @ORM\Column(name="primary_job", type="text", options={"collate"="utf8_unicode_ci"}, nullable=true)
  39.      */
  40.     private $primaryJob;
  41.     
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="favorite_quote", type="text", options={"collate"="utf8_unicode_ci"}, nullable=true)
  46.      */
  47.     private $favoriteQuote;
  48.     
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="fact", type="text", options={"collate"="utf8_unicode_ci"}, nullable=true)
  53.      */
  54.     private $fact;
  55.     
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="favorite_food", type="text", options={"collate"="utf8_unicode_ci"}, nullable=true)
  60.      */
  61.     private $favoriteFood;
  62.     
  63.     /**
  64.      * @var integer
  65.      * @ORM\Column(name="sort_position", type="integer", nullable=true)
  66.      */
  67.     private $sortPosition;
  68.     
  69.     /**
  70.      * Get id
  71.      *
  72.      * @return integer
  73.      */
  74.     public function getId()
  75.     {
  76.         return $this->id;
  77.     }
  78.     /**
  79.      * Set position
  80.      *
  81.      * @param string $position
  82.      *
  83.      * @return EmployeeInfo
  84.      */
  85.     public function setPosition($position)
  86.     {
  87.         $this->position $position;
  88.         return $this;
  89.     }
  90.     /**
  91.      * Get position
  92.      *
  93.      * @return string
  94.      */
  95.     public function getPosition()
  96.     {
  97.         return $this->position;
  98.     }
  99.     /**
  100.      * Set primaryJob
  101.      *
  102.      * @param string $primaryJob
  103.      *
  104.      * @return EmployeeInfo
  105.      */
  106.     public function setPrimaryJob($primaryJob)
  107.     {
  108.         $this->primaryJob $primaryJob;
  109.         return $this;
  110.     }
  111.     /**
  112.      * Get primaryJob
  113.      *
  114.      * @return string
  115.      */
  116.     public function getPrimaryJob()
  117.     {
  118.         return $this->primaryJob;
  119.     }
  120.     /**
  121.      * Set favoriteQuote
  122.      *
  123.      * @param string $favoriteQuote
  124.      *
  125.      * @return EmployeeInfo
  126.      */
  127.     public function setFavoriteQuote($favoriteQuote)
  128.     {
  129.         $this->favoriteQuote $favoriteQuote;
  130.         return $this;
  131.     }
  132.     /**
  133.      * Get favoriteQuote
  134.      *
  135.      * @return string
  136.      */
  137.     public function getFavoriteQuote()
  138.     {
  139.         return $this->favoriteQuote;
  140.     }
  141.     /**
  142.      * Set fact
  143.      *
  144.      * @param string $fact
  145.      *
  146.      * @return EmployeeInfo
  147.      */
  148.     public function setFact($fact)
  149.     {
  150.         $this->fact $fact;
  151.         return $this;
  152.     }
  153.     /**
  154.      * Get fact
  155.      *
  156.      * @return string
  157.      */
  158.     public function getFact()
  159.     {
  160.         return $this->fact;
  161.     }
  162.     /**
  163.      * Set favoriteFood
  164.      *
  165.      * @param string $favoriteFood
  166.      *
  167.      * @return EmployeeInfo
  168.      */
  169.     public function setFavoriteFood($favoriteFood)
  170.     {
  171.         $this->favoriteFood $favoriteFood;
  172.         return $this;
  173.     }
  174.     /**
  175.      * Get favoriteFood
  176.      *
  177.      * @return string
  178.      */
  179.     public function getFavoriteFood()
  180.     {
  181.         return $this->favoriteFood;
  182.     }
  183.     // @param \App\project\OfficeBrain\CustomBundle\UserBundle\Entity\User $user
  184.     /**
  185.      * Set user
  186.      *
  187.      * @param \App\OfficeBrain\Bundle\UserBundle\Entity\User $user
  188.      *
  189.      * @return EmployeeInfo
  190.      */
  191.     public function setUser(\App\OfficeBrain\Bundle\UserBundle\Entity\User $user null)
  192.     {
  193.         $this->user $user;
  194.         return $this;
  195.     }
  196.     // @return \App\project\OfficeBrain\CustomBundle\UserBundle\Entity\User
  197.     /**
  198.      * Get user
  199.      *
  200.      * @return \App\OfficeBrain\Bundle\UserBundle\Entity\User
  201.      */
  202.     public function getUser()
  203.     {
  204.         return $this->user;
  205.     }
  206.     
  207.     /**
  208.      * Set sortPosition
  209.      *
  210.      * @param integer $sortPosition
  211.      *
  212.      * @return EmployeeInfo
  213.      */
  214.     public function setSortPosition($sortPosition)
  215.     {
  216.         $this->sortPosition $sortPosition;
  217.     
  218.         return $this;
  219.     }
  220.     
  221.     /**
  222.      * Get sortPosition
  223.      *
  224.      * @return integer
  225.      */
  226.     public function getSortPosition()
  227.     {
  228.         return $this->sortPosition;
  229.     }
  230. }