src/Bigcommerce/Api/Filter.php
public static function create($filter = array())
    {
        if ($filter instanceof self) {
            return $filter;
        }

        if (is_int($filter)) {
            $filter = array('page' => $filter);
        }

        return new self($filter);
    }
public static function create($filter = array())
    {
        if ($filter instanceof self) {
            return $filter;
        }

        if (is_int($filter)) {
            $filter = array('page' => $filter);
        }

        return new self($filter);
    }
public static function create ( $ filter = array ( ) ) { if ( $ filter instanceof self ) { return $ filter ; } if ( is_int ( $ filter ) ) { $ filter = array ( 'page' => $ filter ) ; } return new self ( $ filter ) ; }
Factory method, creates an instance of a filter.
Used to build URLs to collection endpoints.
@param array $filter
@return $this
Factory method creates an instance of a filter . Used to build URLs to collection endpoints .