Passed
Pull Request — master (#1168)
by
unknown
34:44
created

AbstractRequestEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 24
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getRequest() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
namespace League\OAuth2\Server\Events;
4
5
use Psr\Http\Message\ServerRequestInterface;
6
7
abstract class AbstractRequestEvent
8
{
9
    /**
10
     * @var ServerRequestInterface
11
     */
12
    private $request;
13
14
    /**
15
     * AbstractRequestEvent constructor.
16
     *
17
     * @param ServerRequestInterface $request
18
     */
19
    public function __construct(ServerRequestInterface $request)
20
    {
21
        $this->request = $request;
22
    }
23
24
    /**
25
     * @return ServerRequestInterface
26
     * @codeCoverageIgnore
27
     */
28
    public function getRequest()
29
    {
30
        return $this->request;
31
    }
32
}
33