public function LinkTag::setContent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/LinkTag.php \phpDocumentor\Reflection\DocBlock\Tag\LinkTag::setContent()
Sets the content of this tag.
Parameters
string $content The new content of this tag.:
Return value
$this
Overrides Tag::setContent
File
- vendor/
phpdocumentor/ reflection-docblock/ src/ phpDocumentor/ Reflection/ DocBlock/ Tag/ LinkTag.php, line 44
Class
- LinkTag
- Reflection class for a @link tag in a Docblock.
Namespace
phpDocumentor\Reflection\DocBlock\TagCode
public function setContent($content) {
parent::setContent($content);
$parts = preg_split('/\\s+/Su', $this->description, 2);
$this->link = $parts[0];
$this
->setDescription(isset($parts[1]) ? $parts[1] : $parts[0]);
$this->content = $content;
return $this;
}