Passed
Push — master ( 486903...6ccc61 )
by Stephen
02:36
created

Bot   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 62
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 6
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 62
ccs 0
cts 24
cp 0
rs 10

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A isDeleted() 0 4 1
A getIconImage36() 0 4 1
A getIconImage48() 0 4 1
A getIconImage72() 0 4 1
1
<?php
2
3
namespace Slack;
4
5
/**
6
 * Contains information about a bot.
7
 */
8
class Bot extends ClientObject
9
{
10
    /**
11
     * Gets the bot's ID.
12
     *
13
     * @return string The bot's ID.
14
     */
15
    public function getId()
16
    {
17
        return $this->data['id'];
18
    }
19
20
    /**
21
     * Gets the name of the bot.
22
     *
23
     * @return string The name of the bot.
24
     */
25
    public function getName()
26
    {
27
        return $this->data['name'];
28
    }
29
30
    /**
31
     * Checks if the bot is deleted.
32
     *
33
     * @return bool True if the bot is deleted.
34
     */
35
    public function isDeleted()
36
    {
37
        return $this->data['deleted'];
38
    }
39
40
    /**
41
      * Bot icon image URL 36x36px
42
      *
43
      * @return string URL of the 36x36px bot icon image
44
      */
45
     public function getIconImage36()
46
     {
47
         return $this->data['icons']['image_36'];
48
     }
49
50
     /**
51
      * Bot icon image URL 48x48px
52
      *
53
      * @return string URL of the 48x48px bot icon image
54
      */
55
     public function getIconImage48()
56
     {
57
         return $this->data['icons']['image_48'];
58
     }
59
60
     /**
61
      * Bot icon image URL 72x72px
62
      *
63
      * @return string URL of the 72x72px bot icon image
64
      */
65
     public function getIconImage72()
66
     {
67
         return $this->data['icons']['image_72'];
68
     }
69
}
70