Total Complexity | 8 |
Total Lines | 84 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | class Click |
||
18 | { |
||
19 | /** |
||
20 | * @var integer |
||
21 | */ |
||
22 | protected $id; |
||
23 | |||
24 | /** |
||
25 | * @var UserInterface|null |
||
26 | */ |
||
27 | protected $user; |
||
28 | |||
29 | /** |
||
30 | * @var integer |
||
31 | */ |
||
32 | protected $reference; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $userIP; |
||
38 | |||
39 | /** |
||
40 | * @return int |
||
41 | */ |
||
42 | 1 | public function getId(): int |
|
43 | { |
||
44 | 1 | return $this->id; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param int $id |
||
49 | */ |
||
50 | 1 | public function setId(int $id) |
|
51 | { |
||
52 | 1 | $this->id = $id; |
|
53 | 1 | } |
|
54 | |||
55 | /** |
||
56 | * @return null|UserInterface |
||
57 | */ |
||
58 | 1 | public function getUser() |
|
59 | { |
||
60 | 1 | return $this->user; |
|
61 | } |
||
62 | |||
63 | /** |
||
64 | * @param null|UserInterface $user |
||
65 | */ |
||
66 | 4 | public function setUser($user) |
|
69 | 4 | } |
|
70 | |||
71 | /** |
||
72 | * @return int |
||
73 | */ |
||
74 | 1 | public function getReference(): int |
|
75 | { |
||
76 | 1 | return $this->reference; |
|
77 | } |
||
78 | |||
79 | /** |
||
80 | * @param int $reference |
||
81 | */ |
||
82 | 4 | public function setReference(int $reference) |
|
83 | { |
||
84 | 4 | $this->reference = $reference; |
|
85 | 4 | } |
|
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | 1 | public function getUserIP(): string |
|
93 | } |
||
94 | |||
95 | /** |
||
96 | * @param string $userIP |
||
97 | */ |
||
98 | 4 | public function setUserIP(string $userIP) |
|
101 | 4 | } |
|
102 | |||
103 | } |