Passed
Push — master ( 617266...2422af )
by Siim
10:33
created

EmptyRequest::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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 getCacheExpiresAfter(): ?int
28
    {
29
        return null;
30
    }
31
}
32