phpDocumentor\Reflection\DocBlock\Tag::getContent PHP 메소드

getContent() 공개 메소드

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

Usage Example

예제 #1
0
파일: TagTest.php 프로젝트: scrobot/Lumen
 /**
  * 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