for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DingRobot\Message;
/**
* Link
*
* @method Link title($title)
* @method Link text($markdownText)
* @method Link picUrl($picUrl)
* @method Link messageUrl($messageUrl)
* @package DingRobot\Message
*/
class Link extends Base
{
public function __construct($title = '')
parent::__construct();
$this->title($title);
$this->bodyName = 'link';
}
protected function getBody()
return $this->body;
protected function bodyFields()
return ['title', 'text', 'picUrl', 'messageUrl'];
protected function validate()
$this->check('title');
$this->check('text');
$this->check('picUrl', false);
$this->check('messageUrl');