public function apply(TakesConditions $builder)
    {
        $peeking = $this->peek;
        $this->peek = false;

        foreach ($this->conditions as $condition) {
            $condition->apply($builder);
        }
        // Clear Conditions
        if ($peeking) {
            return;
        }

        $this->conditions = new Collection();
    }
public function apply(TakesConditions $builder)
    {
        $peeking = $this->peek;
        $this->peek = false;

        foreach ($this->conditions as $condition) {
            $condition->apply($builder);
        }
        // Clear Conditions
        if ($peeking) {
            return;
        }

        $this->conditions = new Collection();
    }
public function apply ( TakesConditions $ builder ) { $ peeking = $ this -> peek ; $ this -> peek = false ; foreach ( $ this -> conditions as $ condition ) { $ condition -> apply ( $ builder ) ; } // Clear Conditions if ( $ peeking ) { return ; } $ this -> conditions = new Collection ( ) ; }
takes a condition

@param \Ipunkt\LaravelJsonApi\Contracts\Repositories\Conditions\TakesConditions $builder
takes a condition