PHP Class Laravel\Envoy\Slack

Inheritance: use trait ConfigurationParser
Show file Open project: laravel/envoy

Public Properties

Property Type Description
$channel
$hook
$message
$options

Public Methods

Method Description
__construct ( string $hook, mixed $channel = '', string $message = null, array $options = [] ) : void Create a new Slack instance.
make ( string $hook, mixed $channel = '', string $message = null, array $options = [] ) : Slack Create a new Slack message instance.
send ( ) : void Send the Slack message.
task ( string $task ) Set the task for the message.

Method Details

__construct() public method

Create a new Slack instance.
public __construct ( string $hook, mixed $channel = '', string $message = null, array $options = [] ) : void
$hook string
$channel mixed
$message string
$options array
return void

make() public static method

Create a new Slack message instance.
public static make ( string $hook, mixed $channel = '', string $message = null, array $options = [] ) : Slack
$hook string
$channel mixed
$message string
$options array
return Slack

send() public method

Send the Slack message.
public send ( ) : void
return void

task() public method

Set the task for the message.
public task ( string $task )
$task string

Property Details

$channel public property

public $channel

$hook public property

public $hook

$message public property

public $message

$options public property

public $options