Passed
Push — master ( 2422af...3df341 )
by Siim
10:55
created

EmptyRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCacheTags() 0 3 1
A getCacheKey() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: siim
5
 * Date: 14.02.19
6
 * Time: 7:54
7
 */
8
9
namespace Sf4\Api\Request;
10
11
use Sf4\Api\Response\EmptyResponse;
12
13
class EmptyRequest extends AbstractRequest
14
{
15
    public function __construct()
16
    {
17
        $this->init(
18
            new EmptyResponse()
19
        );
20
    }
21
22
    protected function getCacheTags(): array
23
    {
24
        return [];
25
    }
26
27
    protected function getCacheKey(): string
28
    {
29
        return '__EMPTY';
30
    }
31
}
32