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

AbstractRequestEvent::getRequest()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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