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

GetRequestMethod   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A asString() 0 4 1
A isReadMethod() 0 4 1
1
<?php
2
namespace Kartenmacherei\RestFramework\Request\Method;
3
4
class GetRequestMethod extends AbstractRequestMethod
5
{
6
    /**
7
     * @return string
8
     */
9
    public function asString(): string
10
    {
11
        return RequestMethod::GET;
12
    }
13
14
    /**
15
     * @return bool
16
     */
17
    public function isReadMethod(): bool
18
    {
19
        return true;
20
    }
21
22
23
}
24