1
0
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:
Nicolas Grekas
2023-08-03 14:04:37 +02:00
committed by GitHub
parent e239236968
commit 9546d94bdc
20 changed files with 132 additions and 6 deletions

View File

@@ -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
{