DefaultRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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