PHP Класс rcrowe\Hippy\Transport\Guzzle

Наследование: implements rcrowe\Hippy\Transport\TransportInterface
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$endpoint string
$from string
$headers array
$http Guzzle\Http\ClientInterface
$room string | integer
$token string

Открытые методы

Метод Описание
__construct ( $token, $room, $from, $endpoint = 'https://api.hipchat.com/v1/' )
getEndpoint ( )
getFrom ( )
getHeaders ( )
getHttp ( ) : Guzzle\Http\ClientInterface Get the instance of Guzzle used to send the message.
getRoom ( )
getToken ( )
send ( rcrowe\Hippy\Message\MessageInterface $message )
setEndpoint ( $endpoint )
setFrom ( $from )
setHeaders ( array $headers )
setHttp ( Guzzle\Http\ClientInterface $http ) : void Set the instance of Guzzle used to send the message.
setRoom ( $room )
setToken ( $token )

Защищенные методы

Метод Описание
getUri ( ) : string Uri of the request URL to the Hipchat API.

Описание методов

__construct() публичный метод

public __construct ( $token, $room, $from, $endpoint = 'https://api.hipchat.com/v1/' )

getEndpoint() публичный метод

public getEndpoint ( )

getFrom() публичный метод

public getFrom ( )

getHeaders() публичный метод

public getHeaders ( )

getHttp() публичный метод

Get the instance of Guzzle used to send the message.
public getHttp ( ) : Guzzle\Http\ClientInterface
Результат Guzzle\Http\ClientInterface

getRoom() публичный метод

public getRoom ( )

getToken() публичный метод

public getToken ( )

getUri() защищенный метод

Uri of the request URL to the Hipchat API.
protected getUri ( ) : string
Результат string

send() публичный метод

public send ( rcrowe\Hippy\Message\MessageInterface $message )
$message rcrowe\Hippy\Message\MessageInterface

setEndpoint() публичный метод

public setEndpoint ( $endpoint )

setFrom() публичный метод

public setFrom ( $from )

setHeaders() публичный метод

public setHeaders ( array $headers )
$headers array

setHttp() публичный метод

Set the instance of Guzzle used to send the message.
public setHttp ( Guzzle\Http\ClientInterface $http ) : void
$http Guzzle\Http\ClientInterface
Результат void

setRoom() публичный метод

public setRoom ( $room )

setToken() публичный метод

public setToken ( $token )

Описание свойств

$endpoint защищенное свойство

protected string $endpoint
Результат string

$from защищенное свойство

protected string $from
Результат string

$headers защищенное свойство

protected array $headers
Результат array

$http защищенное свойство

protected ClientInterface,Guzzle\Http $http
Результат Guzzle\Http\ClientInterface

$room защищенное свойство

protected string|int $room
Результат string | integer

$token защищенное свойство

protected string $token
Результат string