for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace Personnage\Tinkoff\SDK\Event;
use League\Event\AbstractEvent;
use Psr\Http\Message\RequestInterface;
abstract class Event extends AbstractEvent
{
/**
* @var RequestInterface
*/
public $request;
* @var float
public $startedAt;
public $completedAt;
* Create a new instance.
*
* @param RequestInterface $request
* @param float $startedAt
* @param float $completedAt
public function __construct(RequestInterface $request, float $startedAt, float $completedAt)
$this->request = $request;
$this->startedAt = $startedAt;
$this->completedAt = $completedAt;
}
public function time(): float
return $this->completedAt - $this->startedAt;