public function setTokenType($tokenType) { if (!is_string($tokenType) || 0 >= strlen($tokenType)) { throw new TokenResponseException('token_type needs to be a non-empty string'); } $this->tokenType = $tokenType; }