| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function __construct($idiormDbal, int $perPage, int $page = 1) |
||
| 28 | { |
||
| 29 | /** @var IdiormDbal $idiormDbal */ |
||
| 30 | $this->total = $idiormDbal->getOrmModel()->count(); |
||
| 31 | $this->dbal = $idiormDbal; |
||
| 32 | $this->dbal->limit($perPage)->offset($perPage * ($page - 1)); |
||
| 33 | $this->data = $this->dbal->getOrmModel()->find_many(); |
||
| 34 | $this->perPage = $perPage; |
||
| 35 | $this->page = $page; |
||
| 36 | $this->baseUrl = base_dir(); |
||
| 37 | } |
||
| 68 | } |