1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 04:37:38 +02:00

Add getter for webhook and token property

This commit is contained in:
MilesChou
2018-04-25 15:51:22 +08:00
parent 1107013b9c
commit 985fdb3eae
2 changed files with 14 additions and 4 deletions

View File

@@ -27,13 +27,13 @@ class SlackHandler extends SocketHandler
* Slack API token
* @var string
*/
protected $token;
private $token;
/**
* Instance of the SlackRecord util class preparing data for Slack API.
* @var SlackRecord
*/
protected $slackRecord;
private $slackRecord;
/**
* @param string $token Slack API token
@@ -75,6 +75,11 @@ class SlackHandler extends SocketHandler
return $this->slackRecord;
}
public function getToken()
{
return $this->token;
}
/**
* {@inheritdoc}
*

View File

@@ -27,13 +27,13 @@ class SlackWebhookHandler extends AbstractProcessingHandler
* Slack Webhook token
* @var string
*/
protected $webhookUrl;
private $webhookUrl;
/**
* Instance of the SlackRecord util class preparing data for Slack API.
* @var SlackRecord
*/
protected $slackRecord;
private $slackRecord;
/**
* @param string $webhookUrl Slack Webhook URL
@@ -70,6 +70,11 @@ class SlackWebhookHandler extends AbstractProcessingHandler
return $this->slackRecord;
}
public function getWebhookUrl()
{
return $this->webhookUrl;
}
/**
* {@inheritdoc}
*