Completed
Push — master ( 4f3285...cedc69 )
by Ronaldo
02:00
created

BaseEvent::getUserId()   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
     * @return string
30
     */
31 1
    public function getType()
32
    {
33 1
        return $this->type;
34
    }
35
36
    /**
37
     * @return string
38
     */
39 1
    public function getApiKey()
40
    {
41 1
        return $this->apiKey;
42
    }
43
44
    /**
45
     * @param string $apiKey
46
     *
47
     * @return $this
48
     */
49 1
    public function setApiKey($apiKey)
50
    {
51 1
        $this->apiKey = $apiKey;
52
53 1
        return $this;
54
    }
55
56
    /**
57
     * @return string
58
     */
59 1
    public function getUserId()
60
    {
61 1
        return $this->userId;
62
    }
63
64
    /**
65
     * @param string $userId
66
     *
67
     * @return $this
68
     */
69 1
    public function setUserId($userId)
70
    {
71 1
        $this->userId = $userId;
72
73 1
        return $this;
74
    }
75
}
76