tokens = new ArrayCollection(); } /** * @param string $apiVersion * * @return ApiAccount */ public function setApiVersion($apiVersion) { $this->apiVersion = $apiVersion; return $this; } /** * @return string */ public function getApiVersion() { return $this->apiVersion; } /** * @param ApiApplication $application * * @return ApiAccount */ public function setApplication(ApiApplication $application) { $application->addAccount($this); $this->application = $application; return $this; } /** * @return ApiApplication */ public function getApplication() { return $this->application; } /** * @param \DateTime $created * * @return ApiAccount */ public function setCreated(\DateTime $created) { $this->created = $created; return $this; } /** * @return \DateTime */ public function getCreated() { return $this->created; } /** * @return integer */ public function getId() { return $this->id; } /** * @param boolean $revoked * * @return ApiAccount */ public function setRevoked($revoked) { $this->revoked = (Boolean) $revoked; return $this; } /** * @return boolean */ public function isRevoked() { return $this->revoked; } /** * @param User $user * * @return ApiAccount */ public function setUser(User $user) { $this->user = $user; return $this; } /** * @return User */ public function getUser() { return $this->user; } /** * @param ApiOauthToken $token * * @return $this */ public function addTokens(ApiOauthToken $token) { $this->tokens->add($token); return $this; } }