for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DingNotice\Messages;
abstract class Message
{
protected $message = [];
protected $at;
public function getMessage(){
return $this->message;
}
protected function makeAt($mobiles = [],$atAll = false){
return [
'at' => [
'atMobiles' => $mobiles,
'isAtAll' => $atAll
]
];
public function sendAt($mobiles = [],$atAll = false){
$this->at = $this->makeAt($mobiles,$atAll);
return $this;
public function getBody(){
if (empty($this->at)){
$this->sendAt();
return $this->message + $this->at;