$this->docBlockFactory =
$docBlockFactory ?: DocBlockFactory::
createInstance();
$this->contextFactory =
new ContextFactory();
$this->phpDocTypeHelper =
new PhpDocTypeHelper();
$this->mutatorPrefixes =
$mutatorPrefixes ?? ReflectionExtractor::
$defaultMutatorPrefixes;
$this->accessorPrefixes =
$accessorPrefixes ?? ReflectionExtractor::
$defaultAccessorPrefixes;
$this->arrayMutatorPrefixes =
$arrayMutatorPrefixes ?? ReflectionExtractor::
$defaultArrayMutatorPrefixes;
} public function getShortDescription(string
$class, string
$property, array
$context =
[]): ?string
{ /** @var $docBlock DocBlock */
[$docBlock] =
$this->
getDocBlock($class,
$property);
if (!
$docBlock) { return null;
} $shortDescription =
$docBlock->
getSummary();
if (!
empty($shortDescription)) { return $shortDescription;
} foreach ($docBlock->
getTagsByName('var'
) as $var) {