Completed
Push — master ( a482e0...5c9671 )
by Sebastian
02:54
created

OptionsRequestMethod::isOptionsMethod()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Kartenmacherei\RestFramework\Request\Method;
3
4
class OptionsRequestMethod extends AbstractRequestMethod
5
{
6
    /**
7
     * @return string
8
     */
9
    public function asString(): string
10
    {
11
        return RequestMethod::OPTIONS;
12
    }
13
14
    /**
15
     * @return bool
16
     */
17
    public function isOptionsMethod(): bool
18
    {
19
        return true;
20
    }
21
22
23
}
24