| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class GridFactory |
||
| 16 | { |
||
| 17 | protected const ATTRIBUTE_CLASS = 'class'; |
||
| 18 | |||
| 19 | /** @var array<string,Attribute> */ |
||
| 20 | protected array $attributes = []; |
||
| 21 | |||
| 22 | public function __construct() |
||
| 23 | { |
||
| 24 | $this->attributes = Attributes::fromArray([self::ATTRIBUTE_CLASS => 'grid']); |
||
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Table $table |
||
| 30 | * @param IPagination $pagination |
||
| 31 | * @param Filters $filters |
||
| 32 | * @param Actions|null $actions |
||
| 33 | * |
||
| 34 | * @return Grid |
||
| 35 | */ |
||
| 36 | public function create(Table $table, IPagination $pagination, Filters $filters, ?Actions $actions): Grid |
||
| 39 | } |
||
| 40 | } |
||
| 41 |