protected function fetchActionScope($actionId)
    {
        if (empty($this->actionScopes)) {
            return null;
        }

        $ownerId = $this->owner->getUniqueId();
        foreach ($this->actionScopes as $actionPattern => $scope) {

            if (StringHelper::matchWildcard(
                "$ownerId/$actionPattern",
                $actionId
            )) {
                return $scope;
            }
        }

        return null;
    }
protected function fetchActionScope($actionId)
    {
        if (empty($this->actionScopes)) {
            return null;
        }

        $ownerId = $this->owner->getUniqueId();
        foreach ($this->actionScopes as $actionPattern => $scope) {

            if (StringHelper::matchWildcard(
                "$ownerId/$actionPattern",
                $actionId
            )) {
                return $scope;
            }
        }

        return null;
    }
protected function fetchActionScope ( $ actionId ) { if ( empty ( $ this -> actionScopes ) ) { return null ; } $ ownerId = $ this -> owner -> getUniqueId ( ) ; foreach ( $ this -> actionScopes as $ actionPattern => $ scope ) { if ( StringHelper :: matchWildcard ( "$ownerId/$actionPattern" , $ actionId ) ) { return $ scope ; } } return null ; }
Fetch the scope required for the action id.

@param string $actionId
@return ?string the required scope or `null` if no scope is required.
Fetch the scope required for the action id .