for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Gitter;
class GitterMessage
{
/**
* Gitter room id.
*
* @var string
*/
public $room = '';
* A user or app access token.
public $from = '';
* The text content of the message.
public $content = '';
* Create a new instance of GitterMessage.
* @param string $content
* @return static
public static function create($content = '')
return new static($content);
}
public function __construct(string $content = '')
$this->content($content);
* Set the Gitter room id to send message to.
* @param string $roomId
* @return $this
public function room(string $roomId)
$this->room = $roomId;
return $this;
* Set the sender's access token.
* @param string $accessToken
public function from(string $accessToken)
$this->from = $accessToken;
* Set the content of the message. Supports GitHub flavoured markdown.
public function content(string $content)
$this->content = $content;