RequestHandled   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 36
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace Jenky\Hermes\Events;
4
5
use Psr\Http\Message\RequestInterface;
6
use Psr\Http\Message\ResponseInterface;
7
8
class RequestHandled
9
{
10
    /**
11
     * The request instance.
12
     *
13
     * @var \Psr\Http\Message\RequestInterface
14
     */
15
    public $request;
16
17
    /**
18
     * The response instance.
19
     *
20
     * @var \Psr\Http\Message\ResponseInterface|null
21
     */
22
    public $response;
23
24
    /**
25
     * The request options.
26
     *
27
     * @var array
28
     */
29
    public $options = [];
30
31
    /**
32
     * Create a new event instance.
33
     *
34
     * @param  \Psr\Http\Message\RequestInterface $request
35
     * @param  \Psr\Http\Message\ResponseInterface|null $response
36
     * @param  array $options
37
     * @return void
38
     */
39
    public function __construct(RequestInterface $request, ResponseInterface $response = null, array $options = [])
40
    {
41
        $this->request = $request;
42
        $this->response = $response;
43
        $this->options = $options;
44
    }
45
}
46