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