| 1 | <?php |
||
| 30 | abstract class OnBeginMiddleware extends AbstractMiddleware implements After, BeginSignal |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * @var Arguments |
||
| 34 | */ |
||
| 35 | private $arguments; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return void |
||
| 39 | */ |
||
| 40 | abstract protected function process(); |
||
| 41 | |||
| 42 | /** |
||
| 43 | * We override this function to manually call the `process` function. |
||
| 44 | * |
||
| 45 | * @param Arguments $arguments |
||
| 46 | */ |
||
| 47 | final public function after(Arguments $arguments) |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @return Arguments |
||
| 56 | */ |
||
| 57 | final protected function getArguments() |
||
| 61 | } |
||
| 62 |