DefaultRequest::__construct()   A
last analyzed

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: 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