Overview
  • Namespace
  • Class

Namespaces

  • Slack
    • Message

Classes

  • Slack\ApiClient
  • Slack\Bot
  • Slack\Channel
  • Slack\ClientObject
  • Slack\DataObject
  • Slack\DirectMessageChannel
  • Slack\Group
  • Slack\Message\Attachment
  • Slack\Message\AttachmentBuilder
  • Slack\Message\AttachmentField
  • Slack\Message\Message
  • Slack\Message\MessageBuilder
  • Slack\Payload
  • Slack\RealTimeClient
  • Slack\Team
  • Slack\User

Interfaces

  • Slack\ChannelInterface
  • Slack\Exception

Exceptions

  • Slack\ApiException
  • Slack\ConnectionException
  • Slack\UserNotFoundException
 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     public function getId()
15     {
16         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     public function getName()
25     {
26         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     public function getDomain()
35     {
36         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     public function getEmailDomain()
45     {
46         return isset($this->data['email_domain']) ? $this->data['email_domain'] : '';
47     }
48 }
49 
API documentation generated by ApiGen