| 1 | <?php |
||
| 16 | class Chain |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var FilterRule[] |
||
| 20 | */ |
||
| 21 | protected $rules; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Execute all filters in the chain |
||
| 25 | * |
||
| 26 | * @param bool $isSet |
||
| 27 | * @param mixed $value |
||
| 28 | * @return FilterResult |
||
| 29 | */ |
||
| 30 | 147 | public function filter($isSet, $value = null) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * Add a new rule to the chain |
||
| 45 | * |
||
| 46 | * @param FilterRule $rule |
||
| 47 | * @param string|null $encodingFormat |
||
| 48 | * @return $this |
||
| 49 | */ |
||
| 50 | 147 | public function addRule(FilterRule $rule, $encodingFormat) |
|
| 58 | } |
||
| 59 |