ImChannel::getUser()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Botonomous;
4
5
class ImChannel extends AbstractSlackEntity
6
{
7
    private $isIm;
8
    private $user;
9
    private $created;
10
    private $isUserDeleted;
11
12
    /**
13
     * @return bool
14
     */
15 1
    public function isIm(): bool
16
    {
17 1
        return $this->isIm;
18
    }
19
20
    /**
21
     * @param bool $isIm
22
     */
23 6
    public function setIm(bool $isIm)
24
    {
25 6
        $this->isIm = $isIm;
26 6
    }
27
28
    /**
29
     * @return string
30
     */
31 2
    public function getUser(): string
32
    {
33 2
        return $this->user;
34
    }
35
36
    /**
37
     * @param string $user
38
     */
39 3
    public function setUser(string $user)
40
    {
41 3
        $this->user = $user;
42 3
    }
43
44
    /**
45
     * @return string
46
     */
47 1
    public function getCreated(): string
48
    {
49 1
        return $this->created;
50
    }
51
52
    /**
53
     * @param string $created
54
     */
55 6
    public function setCreated(string $created)
56
    {
57 6
        $this->created = $created;
58 6
    }
59
60
    /**
61
     * @return bool
62
     */
63 1
    public function isUserDeleted(): bool
64
    {
65 1
        return $this->isUserDeleted;
66
    }
67
68
    /**
69
     * @param bool $isUserDeleted
70
     */
71 6
    public function setUserDeleted(bool $isUserDeleted)
72
    {
73 6
        $this->isUserDeleted = $isUserDeleted;
74 6
    }
75
}
76