mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-05 12:47:39 +02:00
Add getter for webhook and token property
This commit is contained in:
@@ -27,13 +27,13 @@ class SlackHandler extends SocketHandler
|
|||||||
* Slack API token
|
* Slack API token
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $token;
|
private $token;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instance of the SlackRecord util class preparing data for Slack API.
|
* Instance of the SlackRecord util class preparing data for Slack API.
|
||||||
* @var SlackRecord
|
* @var SlackRecord
|
||||||
*/
|
*/
|
||||||
protected $slackRecord;
|
private $slackRecord;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $token Slack API token
|
* @param string $token Slack API token
|
||||||
@@ -75,6 +75,11 @@ class SlackHandler extends SocketHandler
|
|||||||
return $this->slackRecord;
|
return $this->slackRecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getToken()
|
||||||
|
{
|
||||||
|
return $this->token;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
|
@@ -27,13 +27,13 @@ class SlackWebhookHandler extends AbstractProcessingHandler
|
|||||||
* Slack Webhook token
|
* Slack Webhook token
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $webhookUrl;
|
private $webhookUrl;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instance of the SlackRecord util class preparing data for Slack API.
|
* Instance of the SlackRecord util class preparing data for Slack API.
|
||||||
* @var SlackRecord
|
* @var SlackRecord
|
||||||
*/
|
*/
|
||||||
protected $slackRecord;
|
private $slackRecord;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $webhookUrl Slack Webhook URL
|
* @param string $webhookUrl Slack Webhook URL
|
||||||
@@ -70,6 +70,11 @@ class SlackWebhookHandler extends AbstractProcessingHandler
|
|||||||
return $this->slackRecord;
|
return $this->slackRecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getWebhookUrl()
|
||||||
|
{
|
||||||
|
return $this->webhookUrl;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user