for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Workplace;
class WorkplaceMessage
{
/** @var string The message content */
protected $content;
/** @var bool Flag content as markdown */
protected $markdown = true;
/**
* Message constructor.
*
* @param string $content
*/
public function __construct($content = '')
$this->content = $content;
}
public function getContent()
return $this->content;
public function content($content)
return $this;
public function isMarkdown()
return $this->markdown;
public function isPlainText()
return ! $this->markdown;
public function asMarkdown()
$this->markdown = true;
public function asPlainText()
$this->markdown = false;