Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DocBlock.php

function DocBlock::__construct

Same name in this branch
  1. 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

DocBlock

Namespace

phpDocumentor\Reflection

Code

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;
}
RSS feed
Powered by Drupal