public function settings(Array $config = []) : Paginator
    {
        foreach( $config as $key => $value )
        {
            $this->$key = $value;
        }        

        $this->class = array_merge($this->config['class'], $this->class ?? []);
        $this->style = array_merge($this->config['style'], $this->style ?? []);

        if( isset($config['url']) && $this->type !== 'ajax' )
        {
            $this->url = Base::suffix(URL::site($config['url']));
        }
        elseif( $this->type === 'ajax' )
        {
            $this->url = 'javascript:;';
        }
        else
        {
            $this->url = CURRENT_CFURL;
        }

        return $this;
    }
public function settings(Array $config = []) : Paginator
    {
        foreach( $config as $key => $value )
        {
            $this->$key = $value;
        }        

        $this->class = array_merge($this->config['class'], $this->class ?? []);
        $this->style = array_merge($this->config['style'], $this->style ?? []);

        if( isset($config['url']) && $this->type !== 'ajax' )
        {
            $this->url = Base::suffix(URL::site($config['url']));
        }
        elseif( $this->type === 'ajax' )
        {
            $this->url = 'javascript:;';
        }
        else
        {
            $this->url = CURRENT_CFURL;
        }

        return $this;
    }
public function settings ( Array $ config = [ ] ) : Paginator { foreach ( $ config as $ key => $ value ) { $ this -> $ key = $ value ; } $ this -> class = array_merge ( $ this -> config [ 'class' ] , $ this -> class ?? [ ] ) ; $ this -> style = array_merge ( $ this -> config [ 'style' ] , $ this -> style ?? [ ] ) ; if ( isset ( $ config [ 'url' ] ) && $ this -> type !== 'ajax' ) { $ this -> url = Base :: suffix ( URL :: site ( $ config [ 'url' ] ) ) ; } elseif ( $ this -> type === 'ajax' ) { $ this -> url = 'javascript:;' ; } else { $ this -> url = CURRENT_CFURL ; } return $ this ; }
Configures all settings of the page.

@param array $cofig = []

@return Paginator
Configures all settings of the page .