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

getContent() public method

Gets the content of this tag.
public getContent ( ) : string
return string
    public function getContent()
    {
        if (null === $this->content) {
            $this->content = $this->description;
        }
        return $this->content;
    }

Usage Example

Beispiel #1
0
 /**
  * Test that the \phpDocumentor\Reflection\DocBlock\Tag\VarTag can
  * understand the @var doc block.
  *
  * @param string $type
  * @param string $content
  * @param string $exDescription
  *
  * @covers       \phpDocumentor\Reflection\DocBlock\Tag
  * @dataProvider provideDataForConstuctor
  *
  * @return void
  */
 public function testConstructorParesInputsIntoCorrectFields($type, $content, $exDescription)
 {
     $tag = new Tag($type, $content);
     $this->assertEquals($type, $tag->getName());
     $this->assertEquals($content, $tag->getContent());
     $this->assertEquals($exDescription, $tag->getDescription());
 }
All Usage Examples Of phpDocumentor\Reflection\DocBlock\Tag::getContent