mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 17:46:09 +02:00
Use @return $this
where applicable (#1828)
This commit is contained in:
@@ -192,6 +192,8 @@ class SlackHandler extends SocketHandler
|
||||
|
||||
/**
|
||||
* Channel used by the bot when posting
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setChannel(string $channel): self
|
||||
{
|
||||
@@ -202,6 +204,8 @@ class SlackHandler extends SocketHandler
|
||||
|
||||
/**
|
||||
* Username used by the bot when posting
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setUsername(string $username): self
|
||||
{
|
||||
@@ -210,6 +214,9 @@ class SlackHandler extends SocketHandler
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function useAttachment(bool $useAttachment): self
|
||||
{
|
||||
$this->slackRecord->useAttachment($useAttachment);
|
||||
@@ -217,6 +224,9 @@ class SlackHandler extends SocketHandler
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function setIconEmoji(string $iconEmoji): self
|
||||
{
|
||||
$this->slackRecord->setUserIcon($iconEmoji);
|
||||
@@ -224,6 +234,9 @@ class SlackHandler extends SocketHandler
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function useShortAttachment(bool $useShortAttachment): self
|
||||
{
|
||||
$this->slackRecord->useShortAttachment($useShortAttachment);
|
||||
@@ -231,6 +244,9 @@ class SlackHandler extends SocketHandler
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return $this
|
||||
*/
|
||||
public function includeContextAndExtra(bool $includeContextAndExtra): self
|
||||
{
|
||||
$this->slackRecord->includeContextAndExtra($includeContextAndExtra);
|
||||
@@ -240,6 +256,7 @@ class SlackHandler extends SocketHandler
|
||||
|
||||
/**
|
||||
* @param string[] $excludeFields
|
||||
* @return $this
|
||||
*/
|
||||
public function excludeFields(array $excludeFields): self
|
||||
{
|
||||
|
Reference in New Issue
Block a user