Completed
Push — master ( 23f513...81b44e )
by Ehsan
03:05
created

ImChannel   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 70%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 8
lcom 0
cbo 1
dl 0
loc 71
ccs 14
cts 20
cp 0.7
rs 10
c 1
b 0
f 0

8 Methods

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