function DocBlock::__construct
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/Metadata/Parser/Annotation/DocBlock.php \PHPUnit\Metadata\Annotation\Parser\DocBlock::__construct()
Parameters
DocBlock\Tag[] $tags:
Types\Context $context The context in which the DocBlock occurs.:
Location $location The location within the file that this DocBlock occurs in.:
File
-
vendor/
phpdocumentor/ reflection-docblock/ src/ DocBlock.php, line 48
Class
Namespace
phpDocumentor\ReflectionCode
public function __construct(string $summary = '', ?DocBlock\Description $description = null, array $tags = [], ?Types\Context $context = null, ?Location $location = null, bool $isTemplateStart = false, bool $isTemplateEnd = false) {
Assert::allIsInstanceOf($tags, Tag::class);
$this->summary = $summary;
$this->description = $description ?: new DocBlock\Description('');
foreach ($tags as $tag) {
$this->addTag($tag);
}
$this->context = $context;
$this->location = $location;
$this->isTemplateEnd = $isTemplateEnd;
$this->isTemplateStart = $isTemplateStart;
}