token = $token; $this->logins = new ArrayCollection(); $this->client = $client; $this->expiresAt = new \DateTime(date('Y-m-d H:i:s', strtotime("+7 day"))); } /** * @return array */ public function getLogins() { return $this->logins; } /** * @param Login $login */ public function addLogin(Login $login) { $this->logins[] = $login; $login->setToken($this); } public function getAction() { return $this->action; } public function setAction(Action $action) { $this->action = $action; } public function getToken() { return $this->token; } public function getExpiresAt() { return $this->expiresAt; } public function getClient() { return $this->client; } public function setToken($token) { $this->token = $token; } public function setExpiresAt(DateTime $expiresAt) { $this->expiresAt = $expiresAt; } public function setClient(Client $client) { $this->client = $client; } }