src/Filter.php
public function setScopes(Mutable $scopes = null)
    {
        if ($scopes && $scopes->count()) {
            $scopes->prepend(
                new Scope('all')
            );
        }

        $this->scopes = $scopes;

        return $this;
    }
public function setScopes(Mutable $scopes = null)
    {
        if ($scopes && $scopes->count()) {
            $scopes->prepend(
                new Scope('all')
            );
        }

        $this->scopes = $scopes;

        return $this;
    }
public function setScopes ( Mutable $ scopes = null ) { if ( $ scopes && $ scopes -> count ( ) ) { $ scopes -> prepend ( new Scope ( 'all' ) ) ; } $ this -> scopes = $ scopes ; return $ this ; }
Set scopes.

@param Mutable $scopes

@return $this
Set scopes .