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

AbstractRequestMethod   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 29
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A equals() 0 4 1
A isReadMethod() 0 4 1
A isOptionsMethod() 0 4 1
1
<?php
2
namespace Kartenmacherei\RestFramework\Request\Method;
3
4
abstract class AbstractRequestMethod implements RequestMethod
5
{
6
    /**
7
     * @param AbstractRequestMethod $requestMethod
8
     * @return bool
9
     */
10
    public function equals(AbstractRequestMethod $requestMethod): bool
11
    {
12
        return get_class($this) === get_class($requestMethod);
13
    }
14
15
    /**
16
     * @return bool
17
     */
18
    public function isReadMethod(): bool
19
    {
20
        return false;
21
    }
22
23
    /**
24
     * @return bool
25
     */
26
    public function isOptionsMethod(): bool
27
    {
28
        return false;
29
    }
30
31
32
}
33