parent
9519287329
commit
2c8e49e560
@ -0,0 +1,13 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
declare(strict_types=1);
|
||||||
|
|
||||||
|
namespace Silex\Util;
|
||||||
|
|
||||||
|
final class Pagination
|
||||||
|
{
|
||||||
|
public static function getNbPages(int $nbItems, int $perPage): int
|
||||||
|
{
|
||||||
|
return intval(ceil($nbItems / $perPage));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue