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  * An object fetched from the Slack API.
 6  */
 7 abstract class ClientObject extends DataObject
 8 {
 9     /**
10      * @var ApiClient The API client the object belongs to.
11      */
12     protected $client;
13 
14     /**
15      * Creates a client object from a data array.
16      *
17      * @param ApiClient $client The API client the object belongs to.
18      * @param array     $data   An array of model data.
19      */
20     public function __construct(ApiClient $client, array $data)
21     {
22         $this->client = $client;
23         $this->data = $data;
24     }
25 
26     /**
27      * Gets the client object that created the object.
28      *
29      * @return ApiClient The client object that created the object.
30      */
31     public function getClient()
32     {
33         return $this->client;
34     }
35 }
36 
API documentation generated by ApiGen