filter class
This commit is contained in:
19
src/Filter/Filter.php
Normal file
19
src/Filter/Filter.php
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user