| 1 | <?php |
||
| 5 | class Every8dMessage |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * The message subject. |
||
| 9 | * |
||
| 10 | * @var string |
||
| 11 | */ |
||
| 12 | public $subject = null; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * The message content. |
||
| 16 | * |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | public $content; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The message send time. |
||
| 23 | * |
||
| 24 | * @var \Carbon\Carbon|string |
||
| 25 | */ |
||
| 26 | public $sendTime; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Create a new message instance. |
||
| 30 | * |
||
| 31 | * @param string $content |
||
| 32 | */ |
||
| 33 | 5 | public function __construct($content = '') |
|
| 37 | |||
| 38 | /** |
||
| 39 | * Set the message subject. |
||
| 40 | * |
||
| 41 | * @param string $subject |
||
| 42 | * @return $this |
||
| 43 | */ |
||
| 44 | 1 | public function subject($subject) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Set the message subject. |
||
| 53 | * |
||
| 54 | * @param string $content |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | 1 | public function content($content) |
|
| 63 | |||
| 64 | /** |
||
| 65 | * Set the message send time. |
||
| 66 | * |
||
| 67 | * @param \Carbon\Carbon|string $sendTime |
||
| 68 | * @return $this |
||
| 69 | */ |
||
| 70 | 1 | public function sendTime($sendTime) |
|
| 76 | |||
| 77 | /** |
||
| 78 | * Create a new message instance. |
||
| 79 | * |
||
| 80 | * @param string $content |
||
| 81 | * @return static |
||
| 82 | */ |
||
| 83 | 1 | public static function create($content) |
|
| 87 | } |
||
| 88 |