| 1 | <?php declare(strict_types=1); |
||
| 8 | abstract class Event extends AbstractEvent |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var RequestInterface |
||
| 12 | */ |
||
| 13 | public $request; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var float |
||
| 17 | */ |
||
| 18 | public $startedAt; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var float |
||
| 22 | */ |
||
| 23 | public $completedAt; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Create a new instance. |
||
| 27 | * |
||
| 28 | * @param RequestInterface $request |
||
| 29 | * @param float $startedAt |
||
| 30 | * @param float $completedAt |
||
| 31 | */ |
||
| 32 | public function __construct(RequestInterface $request, float $startedAt, float $completedAt) |
||
| 38 | |||
| 39 | public function time(): float |
||
| 43 | } |
||
| 44 |