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

Bot::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 2
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