| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace PHPStan\PhpDocParser; |
| 4: | |
| 5: | class ParserConfig |
| 6: | { |
| 7: | |
| 8: | public bool $useLinesAttributes; |
| 9: | |
| 10: | public bool $useIndexAttributes; |
| 11: | |
| 12: | /** |
| 13: | * @param array{lines?: bool, indexes?: bool} $usedAttributes |
| 14: | */ |
| 15: | public function __construct(array $usedAttributes) |
| 16: | { |
| 17: | $this->useLinesAttributes = $usedAttributes['lines'] ?? false; |
| 18: | $this->useIndexAttributes = $usedAttributes['indexes'] ?? false; |
| 19: | } |
| 20: | |
| 21: | } |
| 22: |