1 | <?php |
||
9 | class TopupMobileHandler implements Middleware |
||
10 | { |
||
11 | protected $regex = "/(?<country>(\+?63|0))?(?<mobile>[0-9]{10}) (?<amount>\d+)/"; |
||
12 | |||
13 | protected $mobile; |
||
14 | |||
15 | protected $amount; |
||
16 | |||
17 | public function execute($command, callable $next) |
||
23 | |||
24 | protected function process($command) |
||
33 | } |
||
34 |