src/DataDefinition/ModelRelationship/FilterBuilder/FilterBuilderWithChildren.php
public function add($filter)
    {
        $index = $this->indexOf($filter);

        if ($index === -1) {
            $this->children[] = $filter;
            $filter->setBuilder($this->builder)->setParent($this);
        }

        return $this;
    }
public function add($filter)
    {
        $index = $this->indexOf($filter);

        if ($index === -1) {
            $this->children[] = $filter;
            $filter->setBuilder($this->builder)->setParent($this);
        }

        return $this;
    }
public function add ( $ filter ) { $ index = $ this -> indexOf ( $ filter ) ; if ( $ index === - 1 ) { $ this -> children [ ] = $ filter ; $ filter -> setBuilder ( $ this -> builder ) -> setParent ( $ this ) ; } return $ this ; }
Add a given filter builder to this instance.

@param BaseFilterBuilder $filter The filter builder to add.

@return FilterBuilderWithChildren The current builder.
Add a given filter builder to this instance .