public function record(RequestInterface $request, ResponseInterface $response, float $duration = null): void
    {
        $this->addEntry(new Entry($request, $response, $duration));
    }
public function record(RequestInterface $request, ResponseInterface $response, float $duration = null): void
    {
        $this->addEntry(new Entry($request, $response, $duration));
    }
public function record ( RequestInterface $ request , ResponseInterface $ response , float $ duration = null ) : void { $ this -> addEntry ( new Entry ( $ request , $ response , $ duration ) ) ; }
Records an entry in the journal.

@param RequestInterface  $request  The request
@param ResponseInterface $response The response
@param float|null        $duration The duration in seconds
Records an entry in the journal .