src/Entity/ReserveDetailState.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. /**
  6.  * @ORM\Table(name="interlands.reserve_detail_state")
  7.  * @ORM\Entity(repositoryClass="App\Repository\ReserveDetailStateRepository")
  8.  */
  9. class ReserveDetailState
  10. {  
  11.     /**
  12.      * @var integer
  13.      *
  14.      * @ORM\Column(name="id", type="integer")
  15.      * @ORM\Id
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      */
  18.     private $id;
  19.     /**
  20.      * @ORM\ManyToOne(targetEntity="App\Entity\ReserveDetail", inversedBy="states")
  21.      * @ORM\JoinColumn(referencedColumnName="id", name="reserve_detail_id")
  22.      */
  23.     private $reserve_detail;
  24.     /**
  25.      * @var string
  26.      * 
  27.      * @ORM\Column(type="string", length=100)
  28.      */
  29.     private $state;
  30.     /**
  31.      * @var datetime
  32.      * @ORM\Column(type="datetime")
  33.      */
  34.     private $created;
  35.     /**
  36.      * @var string
  37.      * 
  38.      * @ORM\Column(type="string", length=255, nullable=true)
  39.      */
  40.     private $ycix_user_name;
  41.     /**
  42.      * @var int
  43.      * 
  44.      * @ORM\Column(type="integer", nullable=true)
  45.      */
  46.     private $ycix_user_id;
  47.     /**
  48.      * @var string
  49.      * 
  50.      * @ORM\Column(type="string", length=255, nullable=true)
  51.      */
  52.     private $ycix_user_email;
  53.     /**
  54.      * Constructor
  55.      */
  56.     public function __construct()
  57.     {
  58.         $this->created = new \Datetime('now');
  59.     }
  60.     /**
  61.      * Get id
  62.      *
  63.      * @return integer 
  64.      */
  65.     public function getId()
  66.     {
  67.         return $this->id;
  68.     }
  69.     /**
  70.      * Set reserve_detail
  71.      *
  72.      * @param \App\Entity\ReserveDetail $reserve_detail
  73.      *
  74.      * @return ReserveDetail
  75.      */
  76.     public function setReserveDetail(\App\Entity\ReserveDetail $reserve_detail null)
  77.     {
  78.         $this->reserve_detail $reserve_detail;
  79.         return $this;
  80.     }
  81.     /**
  82.      * Get reserve_detail
  83.      *
  84.      * @return \App\Entity\ReserveDetail
  85.      */
  86.     public function getReserveDetail()
  87.     {
  88.         return $this->reserve_detail;
  89.     }
  90.     /**
  91.      * Set state
  92.      *
  93.      * @return ReserveDetailState
  94.      */
  95.     public function setState($state)
  96.     {
  97.         $this->state $state;
  98.         return $this;
  99.     }
  100.     /**
  101.      * Get state
  102.      */
  103.     public function getState()
  104.     {
  105.         return $this->state;
  106.     }
  107.     /**
  108.      * Set created
  109.      *
  110.      * @param \DateTime $created
  111.      *
  112.      * @return ReserveDetailState
  113.      */
  114.     public function setCreated($created)
  115.     {
  116.         $this->created $created;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get created
  121.      *
  122.      * @return \DateTime
  123.      */
  124.     public function getCreated()
  125.     {
  126.         return $this->created;
  127.     }
  128.     /**
  129.      * Set ycix_user_name
  130.      *
  131.      * @return ReserveDetailState
  132.      */
  133.     public function setYcixUserName($ycix_user_name)
  134.     {
  135.         $this->ycix_user_name $ycix_user_name;
  136.         return $this;
  137.     }
  138.     /**
  139.      * Get ycix_user_name
  140.      */
  141.     public function getYcixUserName()
  142.     {
  143.         return $this->ycix_user_name;
  144.     }
  145.     /**
  146.      * Set ycix_user_id
  147.      *
  148.      * @return ReserveDetailState
  149.      */
  150.     public function setYcixUserId($ycix_user_id)
  151.     {
  152.         $this->ycix_user_id $ycix_user_id;
  153.         return $this;
  154.     }
  155.     /**
  156.      * Get ycix_user_id
  157.      */
  158.     public function getYcixUserId()
  159.     {
  160.         return $this->ycix_user_id;
  161.     }
  162.     /**
  163.      * Set ycix_user_email
  164.      *
  165.      * @return ReserveDetailState
  166.      */
  167.     public function setYcixUserEmail($ycix_user_email)
  168.     {
  169.         $this->ycix_user_email $ycix_user_email;
  170.         return $this;
  171.     }
  172.     /**
  173.      * Get ycix_user_email
  174.      */
  175.     public function getYcixUserEmail()
  176.     {
  177.         return $this->ycix_user_email;
  178.     }
  179. }