PHP Class Crummy\Phlack\Phlack

Inheritance: extends Guzzle\Common\Collection
显示文件 Open project: mcrumm/phlack

Public Methods

Method Description
__construct ( mixed $client ) Phlack Constructor.
factory ( array | string $config = [] ) : Phlack Phlack Factory.
fromConfig ( array $config = [], array $defaults = [], array $required = [] ) : Phlack
getAttachmentBuilder ( ) : AttachmentBuilder
getClient ( ) : PhlackClient
getMessageBuilder ( ) : MessageBuilder
send ( string | array | JsonSerializabl\JsonSerializable $message ) : MessageResponse

Private Methods

Method Description
toParameters ( mixed $message ) : array

Method Details

__construct() public method

Phlack Constructor.
public __construct ( mixed $client )
$client mixed

factory() public static method

Phlack Factory.
public static factory ( array | string $config = [] ) : Phlack
$config array | string
return Phlack

fromConfig() public static method

public static fromConfig ( array $config = [], array $defaults = [], array $required = [] ) : Phlack
$config array
$defaults array
$required array
return Phlack

getAttachmentBuilder() public method

public getAttachmentBuilder ( ) : AttachmentBuilder
return Crummy\Phlack\Builder\AttachmentBuilder

getClient() public method

public getClient ( ) : PhlackClient
return Crummy\Phlack\Bridge\Guzzle\PhlackClient

getMessageBuilder() public method

public getMessageBuilder ( ) : MessageBuilder
return Crummy\Phlack\Builder\MessageBuilder

send() public method

public send ( string | array | JsonSerializabl\JsonSerializable $message ) : MessageResponse
$message string | array | JsonSerializabl\JsonSerializable
return Crummy\Phlack\Bridge\Guzzle\Response\MessageResponse