/** * @return ProtoAuthTicket */ public function toProto() { $ticket = new ProtoAuthTicket(); $ticket->setStart($this->start); $ticket->setExpireTimestampMs($this->expire); $ticket->setEnd($this->end); return $ticket; }