You are here

public function ReturnTag::setContent in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php \phpDocumentor\Reflection\DocBlock\Tag\ReturnTag::setContent()

Sets the content of this tag.

Parameters

string $content The new content of this tag.:

Return value

$this

Overrides Tag::setContent

2 methods override ReturnTag::setContent()
MethodTag::setContent in vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/MethodTag.php
Sets the content of this tag.
ParamTag::setContent in vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/ParamTag.php
Sets the content of this tag.

File

vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Tag/ReturnTag.php, line 48

Class

ReturnTag
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->type = $parts[0];
  $this->types = null;
  $this
    ->setDescription(isset($parts[1]) ? $parts[1] : '');
  $this->content = $content;
  return $this;
}