-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds mrkdwn text formatting helpers (#18)
- Loading branch information
1 parent
bb84cf5
commit 9081400
Showing
22 changed files
with
723 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Jeremeamia\Slack\BlockKit; | ||
|
||
/** | ||
* Stores configuration settings. | ||
*/ | ||
final class Config | ||
{ | ||
/** @var bool|null */ | ||
private $defaultVerbatimSetting = null; | ||
|
||
/** @var bool|null */ | ||
private $defaultEmojiSetting = null; | ||
|
||
public static function new(): self | ||
{ | ||
return new self(); | ||
} | ||
|
||
public function getDefaultVerbatimSetting(): ?bool | ||
{ | ||
return $this->defaultVerbatimSetting; | ||
} | ||
|
||
public function setDefaultVerbatimSetting(?bool $verbatim): self | ||
{ | ||
$this->defaultVerbatimSetting = $verbatim; | ||
|
||
return $this; | ||
} | ||
|
||
public function getDefaultEmojiSetting(): ?bool | ||
{ | ||
return $this->defaultEmojiSetting; | ||
} | ||
|
||
public function setDefaultEmojiSetting(?bool $emoji): self | ||
{ | ||
$this->defaultEmojiSetting = $emoji; | ||
|
||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.