id = $id; $this->provider = $provider; } /** * Returns the id related to the token * * @return string */ public function getId() { return $this->id; } /** * Return the provider related to the token * * @return ProviderInterface */ public function getProvider() { return $this->provider; } /** * Returns the identity related to the token * * @return Identity */ public function getIdentity() { return $this->provider->getIdentity(); } /** * Returns an array of templates related to the Identity * * @return array */ public function getTemplates() { return $this->provider->getTemplates($this->provider->getIdentity()); } }