PHP Class Laravel\Envoy\Slack

Inheritance: use trait ConfigurationParser
Exibir arquivo 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_oe property

public $channel

$hook public_oe property

public $hook

$message public_oe property

public $message

$options public_oe property

public $options