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

setContent() public method

public setContent ( $content )
    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;
    }