| 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: | public bool $useCommentsAttributes; |
| 13: | |
| 14: | |
| 15: | |
| 16: | |
| 17: | public function __construct(array $usedAttributes) |
| 18: | { |
| 19: | $this->useLinesAttributes = $usedAttributes['lines'] ?? false; |
| 20: | $this->useIndexAttributes = $usedAttributes['indexes'] ?? false; |
| 21: | $this->useCommentsAttributes = $usedAttributes['comments'] ?? false; |
| 22: | } |
| 23: | |
| 24: | } |
| 25: | |