Completed
Pull Request — master (#396)
by Kristof
04:45
created

SavedSearchCommand::getSapiVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace CultuurNet\UDB3\SavedSearches\Command;
4
5
use CultuurNet\UDB3\ValueObject\SapiVersion;
6
use ValueObjects\StringLiteral\StringLiteral;
7
8
abstract class SavedSearchCommand
9
{
10
    /**
11
     * @var SapiVersion
12
     */
13
    protected $sapiVersion;
14
15
    /**
16
     * @var StringLiteral
17
     */
18
    protected $userId;
19
20
    /**
21
     * @param SapiVersion $sapiVersion
22
     * @param StringLiteral $userId
23
     */
24
    public function __construct(
25
        SapiVersion $sapiVersion,
26
        StringLiteral $userId
27
    ) {
28
        $this->sapiVersion = $sapiVersion;
29
        $this->userId = $userId;
30
    }
31
32
    /**
33
     * @return SapiVersion
34
     */
35
    public function getSapiVersion(): SapiVersion
36
    {
37
        return $this->sapiVersion;
38
    }
39
40
    /**
41
     * @return StringLiteral
42
     */
43
    public function getUserId()
44
    {
45
        return $this->userId;
46
    }
47
}
48