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

SiteRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 22
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 4 1
A getCacheExpiresAfter() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: siim
5
 * Date: 19.02.19
6
 * Time: 7:11
7
 */
8
9
namespace Sf4\Api\Request;
10
11
use Sf4\Api\CacheAdapter\CacheKeysInterface;
12
use Sf4\Api\Response\SiteResponse;
13
14
class SiteRequest extends AbstractRequest
15
{
16
17
    const ROUTE = 'sf4_api_site';
18
19
    public function __construct()
20
    {
21
        $this->init(
22
            new SiteResponse()
23
        );
24
    }
25
26
    protected function getCacheTags(): array
27
    {
28
        return [
29
            CacheKeysInterface::TAG_SITE
30
        ];
31
    }
32
33
    protected function getCacheExpiresAfter(): ?int
34
    {
35
        return null;
36
    }
37
}
38