Completed
Push — master ( 7da2fe...6f5319 )
by Ronaldo
02:57 queued 01:29
created

BaseEvent::getApiKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
namespace WSW\SiftScience\Events;
4
5
/**
6
 * Class BaseEvent
7
 *
8
 * @package WSW\SiftScience\Events
9
 * @author Ronaldo Matos Rodrigues <[email protected]>
10
 */
11
abstract class BaseEvent
12
{
13
    /**
14
     * @var string
15
     */
16
    protected $type;
17
18
    /**
19
     * @var string
20
     */
21
    protected $apiKey;
22
23
    /**
24
     * @var string
25
     */
26
    protected $userId;
27
28
    /**
29
     * @var string
30
     */
31
    protected $sessionId;
32
33
    /**
34
     * @return string
35
     */
36 1
    public function getType()
37
    {
38 1
        return $this->type;
39
    }
40
41
    /**
42
     * @return string
43
     */
44 1
    public function getApiKey()
45
    {
46 1
        return $this->apiKey;
47
    }
48
49
    /**
50
     * @param string $apiKey
51
     *
52
     * @return $this
53
     */
54 1
    public function setApiKey($apiKey)
55
    {
56 1
        $this->apiKey = $apiKey;
57
58 1
        return $this;
59
    }
60
61
    /**
62
     * @return string
63
     */
64 1
    public function getUserId()
65
    {
66 1
        return $this->userId;
67
    }
68
69
    /**
70
     * @param string $userId
71
     *
72
     * @return $this
73
     */
74 1
    public function setUserId($userId)
75
    {
76 1
        $this->userId = $userId;
77
78 1
        return $this;
79
    }
80
81
    /**
82
     * @return string
83
     */
84 1
    public function getSessionId()
85
    {
86 1
        return $this->sessionId;
87
    }
88
89
    /**
90
     * @param string $sessionId
91
     *
92
     * @return $this
93
     */
94 1
    public function setSessionId($sessionId)
95
    {
96 1
        $this->sessionId = $sessionId;
97
98 1
        return $this;
99
    }
100
}
101