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

BaseEvent   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 65
ccs 12
cts 12
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 4 1
A getApiKey() 0 4 1
A setApiKey() 0 6 1
A getUserId() 0 4 1
A setUserId() 0 6 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