Neos\Flow\Reflection\ClassReflection::getDescription PHP Метод

getDescription() публичный Метод

Returns the description part of the doc comment
public getDescription ( ) : string
Результат string Doc comment description
    public function getDescription()
    {
        return $this->getDocCommentParser()->getDescription();
    }

Usage Example

 /**
  * @test
  */
 public function proxyClassesStillContainDocCommentsFromItsOriginalClass()
 {
     $class = new ClassReflection(Fixtures\ClassWithDocComments::class);
     $expectedResult = 'This is a example doc comment which should be copied' . chr(10) . 'to the proxy class.';
     $actualResult = $class->getDescription();
     $this->assertSame($expectedResult, $actualResult);
 }
All Usage Examples Of Neos\Flow\Reflection\ClassReflection::getDescription