Slack\RealTimeClient::getUserById PHP 메소드

getUserById() 공개 메소드

{@inheritDoc}
public getUserById ( $id )
    public function getUserById($id)
    {
        if (!$this->connected) {
            return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?'));
        }
        if (!isset($this->users[$id])) {
            return Promise\reject(new ApiException("No user exists for ID '{$id}'."));
        }
        return Promise\resolve($this->users[$id]);
    }