看板初始化提交

This commit is contained in:
zephyr
2026-06-01 21:23:12 -07:00
commit 27411ebedc
1827 changed files with 192340 additions and 0 deletions
+74
View File
@@ -0,0 +1,74 @@
<?php
namespace Kanboard\Filter;
use PicoDb\Table;
/**
* Base filter class
*
* @package filter
* @author Frederic Guillot
*/
abstract class BaseFilter
{
/**
* @var Table
*/
protected $query;
/**
* @var mixed
*/
protected $value;
/**
* BaseFilter constructor
*
* @access public
* @param mixed $value
*/
public function __construct($value = null)
{
$this->value = $value;
}
/**
* Get object instance
*
* @static
* @access public
* @param mixed $value
* @return static
*/
public static function getInstance($value = null)
{
return new static($value);
}
/**
* Set query
*
* @access public
* @param Table $query
* @return $this
*/
public function withQuery(Table $query)
{
$this->query = $query;
return $this;
}
/**
* Set the value
*
* @access public
* @param string $value
* @return $this
*/
public function withValue($value)
{
$this->value = $value;
return $this;
}
}