dateLog = new \DateTime(); } public function setDefault(TicketItemInterface $ticketItem, int $from = null, int $to = null, CustomUserInterface $user,int $action) { $this->ticketItem = $ticketItem; $this->_from = $from; $this->_to = $to; $this->action = $action; $this->user = $user; } /** * @return int|mixed */ public function getId() { return $this->id; } /** * @param TicketItemInterface $ticketItem * @return TicketLogInterveningBase */ public function setTicketItem(TicketItemInterface $ticketItem): TicketLogInterveningBase { $this->ticketItem = $ticketItem; return $this; } /** * @return TicketItemInterface */ public function getTicketItem(): TicketItemInterface { return $this->ticketItem; } /** * @return \DateTime */ public function getDateLog(): \DateTime { return $this->dateLog; } /** * @param int $from * @return TicketLogInterveningBase */ public function setFrom(int $from): TicketLogInterveningBase { $this->_from = $from; return $this; } /** * @return int */ public function getFrom(): int { return $this->_from; } /** * @param int $to * @return TicketLogInterveningBase */ public function setTo(int $to): TicketLogInterveningBase { $this->_to = $to; return $this; } /** * @return int */ public function getTo(): int { return $this->_to; } /** * @param CustomUserInterface $user * @return TicketLogInterveningBase */ public function setUser(CustomUserInterface $user): TicketLogInterveningBase { $this->user = $user; return $this; } /** * @return CustomUserInterface */ public function getUser(): CustomUserInterface { return $this->user; } /** * @param int $action * @return TicketLogInterveningBase */ public function setAction(int $action): TicketLogInterveningBase { $this->action = $action; return $this; } /** * @return int */ public function getAction(): int { return $this->action; } }