Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Tomaj\Hermes\Handler; | |
| 6 | ||
| 7 | use Tomaj\Hermes\MessageInterface; | |
| 8 | ||
| 9 | interface HandlerInterface | |
| 10 | { | |
| 11 | /** | |
| 12 | * Basic handler function. | |
| 13 | * | |
| 14 | * You can implement you own handlers only with this function. | |
| 15 | * This function will be ne executed on web server so you can put there | |
| 16 | * long processing jobs that will be executed by dispatcher. | |
| 17 | * You have to register all your handlers to Dispatcher for specified types. | |
| 18 | * | |
| 19 | * @throws \Exception | |
| 20 | */ | |
| 21 | public function handle(MessageInterface $message): bool; | |
| 22 | } |