title($title);
$this->link =$link;
$content = $this->link2content($link);
parent::__construct($title, $content);
}
public function link2content($link)
{
return "{$this->title}";
}
public function newopen()
{
$link = $this->link;
$this->content = "{$this->title}";
return $this;
}
/**
* 设置链接
* @param $link
* @return $this
*/
public function setLink($link)
{
$content = $this->link2content($link);
$this->content($content);
return $this;
}
}