src/Type/StdArray.fix.php
function exclude(array $exclusionFields = [], $exclusionBehave = self::EXCLUDE_DISALLOW)
    {
        $exclude = [];
        foreach ($this->value as $field => $term)
        {
            if (!empty($exclusionFields))
            {
                $flag = in_array($field, $exclusionFields);

                ($exclusionBehave != self::EXCLUDE_ALLOW) ?: $flag = !$flag;

                if ($flag)
                    // The Field not considered as Expression Term
                    continue;
            }

            $exclude[$field] = $term;

        }// end foreach


        return new StdArray($exclude);
    }
function exclude(array $exclusionFields = [], $exclusionBehave = self::EXCLUDE_DISALLOW)
    {
        $exclude = [];
        foreach ($this->value as $field => $term)
        {
            if (!empty($exclusionFields))
            {
                $flag = in_array($field, $exclusionFields);

                ($exclusionBehave != self::EXCLUDE_ALLOW) ?: $flag = !$flag;

                if ($flag)
                    // The Field not considered as Expression Term
                    continue;
            }

            $exclude[$field] = $term;

        }// end foreach


        return new StdArray($exclude);
    }
function exclude ( array $ exclusionFields = [ ] , $ exclusionBehave = self :: EXCLUDE_DISALLOW ) { $ exclude = [ ] ; foreach ( $ this -> value as $ field => $ term ) { if ( ! empty ( $ exclusionFields ) ) { $ flag = in_array ( $ field , $ exclusionFields ) ; ( $ exclusionBehave != self :: EXCLUDE_ALLOW ) ? : $ flag = ! $ flag ; if ( $ flag ) // The Field not considered as Expression Term continue ; } $ exclude [ $ field ] = $ term ; } // end foreach return new StdArray ( $ exclude ) ; }
Exclude From Array

@param array  $exclusionFields The fields that is in query string but must not used in expression
@param string $exclusionBehave allow|disallow

@return self
@throws \Exception
Exclude From Array