for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Recca0120\Every8d;
class Every8dMessage
{
/**
* The message subject.
*
* @var string
*/
public $subject = null;
* The message content.
public $content;
* Create a new message instance.
* @param string $content
* @return void
@return
Adding a @return annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.
Please refer to the PHP core documentation on constructors.
public function __construct($content = '')
$this->content = $content;
}
* Set the message subject.
* @param string $subject
* @return $this
public function subject($subject)
$this->subject = $subject;
return $this;
public function content($content)
* @return static
public static function create($content)
return new static($content);
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.