<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Table(name="interlands.reserve_detail_state") * @ORM\Entity(repositoryClass="App\Repository\ReserveDetailStateRepository") */class ReserveDetailState{ /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @ORM\ManyToOne(targetEntity="App\Entity\ReserveDetail", inversedBy="states") * @ORM\JoinColumn(referencedColumnName="id", name="reserve_detail_id") */ private $reserve_detail; /** * @var string * * @ORM\Column(type="string", length=100) */ private $state; /** * @var datetime * @ORM\Column(type="datetime") */ private $created; /** * @var string * * @ORM\Column(type="string", length=255, nullable=true) */ private $ycix_user_name; /** * @var int * * @ORM\Column(type="integer", nullable=true) */ private $ycix_user_id; /** * @var string * * @ORM\Column(type="string", length=255, nullable=true) */ private $ycix_user_email; /** * Constructor */ public function __construct() { $this->created = new \Datetime('now'); } /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set reserve_detail * * @param \App\Entity\ReserveDetail $reserve_detail * * @return ReserveDetail */ public function setReserveDetail(\App\Entity\ReserveDetail $reserve_detail = null) { $this->reserve_detail = $reserve_detail; return $this; } /** * Get reserve_detail * * @return \App\Entity\ReserveDetail */ public function getReserveDetail() { return $this->reserve_detail; } /** * Set state * * @return ReserveDetailState */ public function setState($state) { $this->state = $state; return $this; } /** * Get state */ public function getState() { return $this->state; } /** * Set created * * @param \DateTime $created * * @return ReserveDetailState */ public function setCreated($created) { $this->created = $created; return $this; } /** * Get created * * @return \DateTime */ public function getCreated() { return $this->created; } /** * Set ycix_user_name * * @return ReserveDetailState */ public function setYcixUserName($ycix_user_name) { $this->ycix_user_name = $ycix_user_name; return $this; } /** * Get ycix_user_name */ public function getYcixUserName() { return $this->ycix_user_name; } /** * Set ycix_user_id * * @return ReserveDetailState */ public function setYcixUserId($ycix_user_id) { $this->ycix_user_id = $ycix_user_id; return $this; } /** * Get ycix_user_id */ public function getYcixUserId() { return $this->ycix_user_id; } /** * Set ycix_user_email * * @return ReserveDetailState */ public function setYcixUserEmail($ycix_user_email) { $this->ycix_user_email = $ycix_user_email; return $this; } /** * Get ycix_user_email */ public function getYcixUserEmail() { return $this->ycix_user_email; }}