30 lines
603 B
PHP
30 lines
603 B
PHP
<?php
|
|
|
|
namespace App\Enums\Pagination;
|
|
|
|
use Kwaadpepper\Enum\BaseEnumRoutable;
|
|
|
|
/**
|
|
* @method static self five()
|
|
* @method static self twelve()
|
|
* @method static self twentyfive()
|
|
* @method static self fifty()
|
|
* @method static self onehundred()
|
|
*/
|
|
final class ItemsPerPaginationEnum extends BaseEnumRoutable
|
|
{
|
|
/**
|
|
* enum values
|
|
* @return array
|
|
*/
|
|
protected static function values(): array
|
|
{
|
|
return [
|
|
'five' => 5,
|
|
'twelve' => 12,
|
|
'twentyfive' => 25,
|
|
'fifty' => 50,
|
|
'onehundred' => 100
|
|
];
|
|
}
|
|
}
|