src/Paginator.php
public function fromArray(array $options)
    {
        static $configurables = [
            'limit',
            'forward',
            'backward',
            'exclusive',
            'inclusive',
            'seekable',
            'unseekable',
        ];

        if (isset($options['orders'])) {
            foreach ($options['orders'] as $order) {
                $this->orderBy(...$order);
            }
        }

        foreach (array_intersect_key($options, array_flip($configurables)) as $key => $value) {
            $this->$key($value);
        }

        return $this;
    }
public function fromArray(array $options)
    {
        static $configurables = [
            'limit',
            'forward',
            'backward',
            'exclusive',
            'inclusive',
            'seekable',
            'unseekable',
        ];

        if (isset($options['orders'])) {
            foreach ($options['orders'] as $order) {
                $this->orderBy(...$order);
            }
        }

        foreach (array_intersect_key($options, array_flip($configurables)) as $key => $value) {
            $this->$key($value);
        }

        return $this;
    }
public function fromArray ( array $ options ) { static $ configurables = [ 'limit' , 'forward' , 'backward' , 'exclusive' , 'inclusive' , 'seekable' , 'unseekable' , ] ; if ( isset ( $ options [ 'orders' ] ) ) { foreach ( $ options [ 'orders' ] as $ order ) { $ this -> orderBy ( ... $ order ) ; } } foreach ( array_intersect_key ( $ options , array_flip ( $ configurables ) ) as $ key => $ value ) { $ this -> $ key ( $ value ) ; } return $ this ; }
Define options from an associative array.

@param  (bool|int|string[][])[] $options
@return $this
Define options from an associative array .