| 1 | <?php |
||
| 9 | abstract class BaseHandler |
||
| 10 | { |
||
| 11 | /** @var array Values validated by validator. Doesn't contains all input values! */ |
||
| 12 | private $values; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array $values |
||
| 16 | */ |
||
| 17 | public function setValidatedValues(array $values) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Validate input |
||
| 24 | * @return bool |
||
| 25 | */ |
||
| 26 | abstract public function validate(); |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @param Request $request |
||
| 30 | * @param Response $response |
||
| 31 | * @param callable $next |
||
| 32 | * @return IResponse |
||
| 33 | */ |
||
| 34 | abstract public function __invoke(Request $request, Response $response, callable $next); |
||
| 35 | } |
||
| 36 |