LinkTag.php in Zircon Profile 8.0
File
vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/LinkTag.php
View source
<?php
namespace phpDocumentor\Reflection\DocBlock\Tag;
use phpDocumentor\Reflection\DocBlock\Tag;
class LinkTag extends Tag {
protected $link = '';
public function getContent() {
if (null === $this->content) {
$this->content = "{$this->link} {$this->description}";
}
return $this->content;
}
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;
}
public function getLink() {
return $this->link;
}
public function setLink($link) {
$this->link = $link;
$this->content = null;
return $this;
}
}
Classes
Name |
Description |
LinkTag |
Reflection class for a @link tag in a Docblock. |