1
0
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:
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 * 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}
* *

View File

@@ -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}
* *