protected function getRelativePath($criteria): string
    {
        $criterion  = current($criteria);
        $components = explode('/', $criterion);

        if (count($components) < 2) {
            return '';
        }

        return implode('/', array_slice($components, 0, -1));
    }
protected function getRelativePath($criteria): string
    {
        $criterion  = current($criteria);
        $components = explode('/', $criterion);

        if (count($components) < 2) {
            return '';
        }

        return implode('/', array_slice($components, 0, -1));
    }
protected function getRelativePath ( $ criteria ) : string { $ criterion = current ( $ criteria ) ; $ components = explode ( '/' , $ criterion ) ; if ( count ( $ components ) < 2 ) { return '' ; } return implode ( '/' , array_slice ( $ components , 0 , - 1 ) ) ; }
Get the relative path that is included in the criterion.

@since 0.4.7

@param array $criteria Criteria to extract the relative path from.
@return string Relative path included in the criterion.
Get the relative path that is included in the criterion .