Team   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 42
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A getDomain() 0 4 1
A getEmailDomain() 0 4 2
1
<?php
2
namespace Slack;
3
4
/**
5
 * Contains information about a Slack team.
6
 */
7
class Team extends ClientObject
8
{
9
    /**
10
     * Gets the team's ID.
11
     *
12
     * @return string The team's ID.
13
     */
14 1
    public function getId()
15
    {
16 1
        return $this->data['id'];
17
    }
18
19
    /**
20
     * Gets the name of the team.
21
     *
22
     * @return string The name of the team.
23
     */
24 1
    public function getName()
25
    {
26 1
        return $this->data['name'];
27
    }
28
29
    /**
30
     * Gets the team's domain name.
31
     *
32
     * @return string The domain name of the team.
33
     */
34 1
    public function getDomain()
35
    {
36 1
        return $this->data['domain'];
37
    }
38
39
    /**
40
     * Gets the domain name emails are restricted to, if any.
41
     *
42
     * @return string An email domain name.
43
     */
44 1
    public function getEmailDomain()
45
    {
46 1
        return isset($this->data['email_domain']) ? $this->data['email_domain'] : '';
47
    }
48
}
49