app\Token::hasScope PHP Method

hasScope() public method

public hasScope ( array $scope )
$scope array
    public function hasScope(array $scope)
    {
        return !!count(array_intersect($scope, $this->decoded->scope));
    }