| 1 | <?php |
||
| 13 | class End extends Event |
||
| 14 | { |
||
| 15 | const EVENT_NAME = 'profiler.timeline_end'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | protected $key; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var float |
||
| 24 | */ |
||
| 25 | protected $timestamp; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * End constructor. |
||
| 29 | * @param string $key |
||
| 30 | * @param float $timestamp |
||
| 31 | */ |
||
| 32 | 4 | public function __construct($key, $timestamp = null) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 4 | public function getKey() |
|
| 45 | |||
| 46 | /** |
||
| 47 | * @return float |
||
| 48 | */ |
||
| 49 | 4 | public function getTimestamp() |
|
| 53 | |||
| 54 | /** |
||
| 55 | * @return array |
||
| 56 | */ |
||
| 57 | 2 | public function toArray() |
|
| 61 | } |
||
| 62 |