public function removeCriteria($criteriaName = '')
    {
        if (!empty($criteriaName)) {
            $this->stack = $this->stack->filter(function (CriteriaInterface $criteria) use ($criteriaName) {
                return !is_a($criteria, $criteriaName);
            });

            return true;
        }

        $this->stack = new Collection();

        return true;
    }
public function removeCriteria($criteriaName = '')
    {
        if (!empty($criteriaName)) {
            $this->stack = $this->stack->filter(function (CriteriaInterface $criteria) use ($criteriaName) {
                return !is_a($criteria, $criteriaName);
            });

            return true;
        }

        $this->stack = new Collection();

        return true;
    }
public function removeCriteria ( $ criteriaName = '' ) { if ( ! empty ( $ criteriaName ) ) { $ this -> stack = $ this -> stack -> filter ( function ( CriteriaInterface $ criteria ) use ( $ criteriaName ) { return ! is_a ( $ criteria , $ criteriaName ) ; } ) ; return true ; } $ this -> stack = new Collection ( ) ; return true ; }
Remove one or all criteria from stack.

@param string $criteriaName

@return bool
Remove one or all criteria from stack .