phpDocumentor\Reflection\DocBlock\Tag::setContent PHP Method

setContent() public method

Sets the content of this tag.
public setContent ( string $content )
$content string The new content of this tag.
    public function setContent($content)
    {
        $this->setDescription($content);
        $this->content = $content;
        return $this;
    }

Usage Example

 /**
  * {@inheritdoc}
  */
 public function setContent($content)
 {
     Tag::setContent($content);
     if (preg_match('/^
             # File component
             (?:
                 # File path in quotes
                 \\"([^\\"]+)\\"
                 |
                 # File URI
                 (\\S+)
             )
             # Remaining content (parsed by SourceTag)
             (?:\\s+(.*))?
         $/sux', $this->description, $matches)) {
         if ('' !== $matches[1]) {
             $this->setFilePath($matches[1]);
         } else {
             $this->setFileURI($matches[2]);
         }
         if (isset($matches[3])) {
             parent::setContent($matches[3]);
         } else {
             $this->setDescription('');
         }
         $this->content = $content;
     }
     return $this;
 }
All Usage Examples Of phpDocumentor\Reflection\DocBlock\Tag::setContent