for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: arnaud
* Date: 01/11/15
* Time: 23:26
*/
namespace Ndrx\Profiler\Events\Timeline;
use Symfony\Component\EventDispatcher\Event;
class End extends Event
{
const EVENT_NAME = 'profiler.timeline_end';
* @var string
protected $key;
* @var float
protected $timestamp;
* End constructor.
* @param string $key
* @param float $timestamp
public function __construct($key, $timestamp = null)
$this->key = $key;
$this->timestamp = $timestamp === null ? microtime(true) : $timestamp;
}
* @return string
public function getKey()
return $this->key;
* @return float
public function getTimestamp()
return $this->timestamp;
* @return array
public function toArray()
return get_object_vars($this);