| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class Entry |
||
| 11 | { |
||
| 12 | private $request; |
||
| 13 | private $response; |
||
| 14 | private $duration; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param float|null $duration The duration in seconds |
||
| 18 | */ |
||
| 19 | 4 | public function __construct(RequestInterface $request, ResponseInterface $response, float $duration = null) |
|
| 20 | { |
||
| 21 | 4 | $this->request = $request; |
|
| 22 | 4 | $this->response = $response; |
|
| 23 | 4 | $this->duration = $duration; |
|
| 24 | 4 | } |
|
| 25 | |||
| 26 | 3 | public function getRequest(): RequestInterface |
|
| 27 | { |
||
| 28 | 3 | return $this->request; |
|
| 29 | } |
||
| 30 | |||
| 31 | 2 | public function getResponse(): ResponseInterface |
|
| 34 | } |
||
| 35 | |||
| 36 | 2 | public function getDuration(): ?float |
|
| 39 | } |
||
| 40 | } |
||
| 41 |