Completed
Push — master ( 260e13...281c81 )
by Sebastian
03:58
created

OptionsRequest   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 20
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getMethod() 0 4 1
A isOptionsRequest() 0 4 1
1
<?php
2
namespace Kartenmacherei\RestFramework\Request;
3
4
use Kartenmacherei\RestFramework\Request\Method\OptionsRequestMethod;
5
use Kartenmacherei\RestFramework\Request\Method\RequestMethod;
6
7
class OptionsRequest extends Request
8
{
9
    /**
10
     * @return RequestMethod
11
     */
12
    public function getMethod(): RequestMethod
13
    {
14
        return new OptionsRequestMethod();
15
    }
16
17
    /**
18
     * @return bool
19
     */
20
    public function isOptionsRequest(): bool
21
    {
22
        return true;
23
    }
24
25
26
}
27