| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace ApiGen\Info; |
| 4: | |
| 5: | use function strtolower; |
| 6: | |
| 7: | |
| 8: | class FunctionReferenceInfo |
| 9: | { |
| 10: | /** @var string e.g. 'Tracy\dump' */ |
| 11: | public string $full; |
| 12: | |
| 13: | /** @var string e.g. 'tracy\dump' */ |
| 14: | public string $fullLower; |
| 15: | |
| 16: | |
| 17: | public function __construct(string $full, ?string $fullLower = null) |
| 18: | { |
| 19: | $this->full = $full; |
| 20: | $this->fullLower = $fullLower ?? strtolower($full); |
| 21: | } |
| 22: | } |
| 23: |