value = $value; return $this; } /** * Get value * * @return string */ public function getValue() { return $this->value; } /** * Set type * * @param string $type * @return Token */ public function setType($type) { $this->type = $type; return $this; } /** * Get type * * @return string */ public function getType() { return $this->type; } /** * Set data * * @param string $data * @return Token */ public function setData($data) { $this->data = $data; return $this; } /** * Get data * * @return string */ public function getData() { return $this->data; } /** * Set created * * @param \DateTime $created * @return Token */ public function setCreated($created) { $this->created = $created; return $this; } /** * Get created * * @return \DateTime */ public function getCreated() { return $this->created; } /** * Set updated * * @param \DateTime $updated * @return Token */ public function setUpdated($updated) { $this->updated = $updated; return $this; } /** * Get updated * * @return \DateTime */ public function getUpdated() { return $this->updated; } /** * Set expiration * * @param \DateTime $expiration * @return Token */ public function setExpiration(\DateTime $expiration = null) { $this->expiration = $expiration; return $this; } /** * Get expiration * * @return \DateTime */ public function getExpiration() { return $this->expiration; } /** * Set user * * @param User $user * @return Token */ public function setUser(User $user = null) { $this->user = $user; return $this; } /** * Get user * * @return User */ public function getUser() { return $this->user; } }