本文整理汇总了PHP中Zend\Code\Generator\DocBlockGenerator::getShortDescription方法的典型用法代码示例。如果您正苦于以下问题:PHP DocBlockGenerator::getShortDescription方法的具体用法?PHP DocBlockGenerator::getShortDescription怎么用?PHP DocBlockGenerator::getShortDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend\Code\Generator\DocBlockGenerator
的用法示例。
在下文中一共展示了DocBlockGenerator::getShortDescription方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isDocBlockEmpty
protected function isDocBlockEmpty(CodeGenerator\DocBlockGenerator $docblock)
{
if (!empty($docblock->getShortDescription()) || !empty($docblock->getLongDescription()) || !empty($docblock->getTags())) {
return false;
}
return true;
}
示例2: testShortDescriptionGetterAndSetter
public function testShortDescriptionGetterAndSetter()
{
$this->docBlockGenerator->setShortDescription('Short Description');
$this->assertEquals('Short Description', $this->docBlockGenerator->getShortDescription());
}
示例3: testDocBlockFromRefelectionShortDescription
public function testDocBlockFromRefelectionShortDescription()
{
$this->assertEquals('Short Description', $this->reflectionDocBlockGenerator->getShortDescription());
}