Passed
Push — master ( ff83e3...5f4a5c )
by Ehsan
03:54
created

ImChannel   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 71
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

8 Methods

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