filter class

This commit is contained in:
2024-08-23 14:52:22 +03:00
parent 77a306a0f6
commit b4dc2f6ab1
8 changed files with 118 additions and 59 deletions

19
src/Filter/Filter.php Normal file
View File

@ -0,0 +1,19 @@
<?php
namespace Itguild\Tables\Filter;
abstract class Filter
{
public string $html = '';
public string|array $data;
public string $name;
// public array|string $value;
public function __construct(array $source)
{
$this->data = $source['data'] ?? '';
// $this->value = $data['value'] ?? [];
$this->name = $source['name'];
}
abstract public function fetch();
}