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

AbstractRequestMethod::isReadMethod()   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
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