| 1 | <?php |
||
| 10 | class Filter |
||
| 11 | { |
||
| 12 | /** @var string */ |
||
| 13 | protected $filterClass; |
||
| 14 | |||
| 15 | /** @var string */ |
||
| 16 | protected $property; |
||
| 17 | |||
| 18 | public function __construct(string $property, string $filterClass) |
||
| 23 | |||
| 24 | public function filter(Builder $builder, $value) |
||
| 30 | |||
| 31 | public static function exact(string $property) : self |
||
| 35 | |||
| 36 | public static function partial(string $property) : self |
||
| 40 | |||
| 41 | public static function scope(string $property) : self |
||
| 45 | |||
| 46 | public static function custom(string $property, string $filterClass) : self |
||
| 50 | |||
| 51 | public function getProperty(): string |
||
| 55 | |||
| 56 | public function isForProperty(string $property): bool |
||
| 60 | } |
||
| 61 |