SiteRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCacheTags() 0 4 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\Request\Traits\GetSiteCacheTags;
13
use Sf4\Api\Response\SiteResponse;
14
15
class SiteRequest extends AbstractRequest
16
{
17
    use GetSiteCacheTags;
18
19
    public const ROUTE = 'sf4_api_site';
20
21
    /**
22
     * SiteRequest constructor.
23
     */
24
    public function __construct()
25
    {
26
        $this->init(
27
            new SiteResponse()
28
        );
29
    }
30
31
    /**
32
     * @return array
33
     */
34
    protected function getCacheTags(): array
35
    {
36
        return [
37
            CacheKeysInterface::TAG_SITE
38
        ];
39
    }
40
}
41