src/Charcoal/Source/Pagination.php
public function setData(array $data)
    {
        parent::setData($data);

        if (isset($data['page'])) {
            $this->setPage($data['page']);
        }

        if (isset($data['per_page'])) {
            $this->setNumPerPage($data['per_page']);
        }

        if (isset($data['num_per_page'])) {
            $this->setNumPerPage($data['num_per_page']);
        }

        return $this;
    }
public function setData(array $data)
    {
        parent::setData($data);

        if (isset($data['page'])) {
            $this->setPage($data['page']);
        }

        if (isset($data['per_page'])) {
            $this->setNumPerPage($data['per_page']);
        }

        if (isset($data['num_per_page'])) {
            $this->setNumPerPage($data['num_per_page']);
        }

        return $this;
    }
public function setData ( array $ data ) { parent :: setData ( $ data ) ; if ( isset ( $ data [ 'page' ] ) ) { $ this -> setPage ( $ data [ 'page' ] ) ; } if ( isset ( $ data [ 'per_page' ] ) ) { $ this -> setNumPerPage ( $ data [ 'per_page' ] ) ; } if ( isset ( $ data [ 'num_per_page' ] ) ) { $ this -> setNumPerPage ( $ data [ 'num_per_page' ] ) ; } return $ this ; }
Set the pagination clause data.

@param  array<string,mixed> $data The expression data;
as an associative array.
@return self
Set the pagination clause data .