/** * @return null|string */ public function getScope() { return $this->user instanceof Entity\ScopesProviderInterface ? $this->user->getScopesString() : null; }