You are here

public function SeeTag::setContent in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/SeeTag.php \phpDocumentor\Reflection\DocBlock\Tag\SeeTag::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/SeeTag.php, line 43

Class

SeeTag
Reflection class for a @author Mike van Riel <mike.vanriel@naenius.com> @license http://www.opensource.org/licenses/mit-license.php MIT @link http://phpdoc.org

Namespace

phpDocumentor\Reflection\DocBlock\Tag

Code

public function setContent($content) {
  parent::setContent($content);
  $parts = preg_split('/\\s+/Su', $this->description, 2);

  // any output is considered a type
  $this->refers = $parts[0];
  $this
    ->setDescription(isset($parts[1]) ? $parts[1] : '');
  $this->content = $content;
  return $this;
}