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

Breadcrumb

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

function PhpDocParser::__construct

*

Parameters

array{lines?: bool, indexes?: bool} $usedAttributes:

File

vendor/phpstan/phpdoc-parser/src/Parser/PhpDocParser.php, line 62

Class

PhpDocParser
@phpstan-import-type ValueType from Doctrine\DoctrineArgument as DoctrineValueType

Namespace

PHPStan\PhpDocParser\Parser

Code

public function __construct(TypeParser $typeParser, ConstExprParser $constantExprParser, bool $requireWhitespaceBeforeDescription = false, bool $preserveTypeAliasesWithInvalidTypes = false, array $usedAttributes = [], bool $parseDoctrineAnnotations = false, bool $textBetweenTagsBelongsToDescription = false) {
    $this->typeParser = $typeParser;
    $this->constantExprParser = $constantExprParser;
    $this->doctrineConstantExprParser = $constantExprParser->toDoctrine();
    $this->requireWhitespaceBeforeDescription = $requireWhitespaceBeforeDescription;
    $this->preserveTypeAliasesWithInvalidTypes = $preserveTypeAliasesWithInvalidTypes;
    $this->parseDoctrineAnnotations = $parseDoctrineAnnotations;
    $this->useLinesAttributes = $usedAttributes['lines'] ?? false;
    $this->useIndexAttributes = $usedAttributes['indexes'] ?? false;
    $this->textBetweenTagsBelongsToDescription = $textBetweenTagsBelongsToDescription;
}
RSS feed
Powered by Drupal