| 1: | <?php declare(strict_types = 1); |
| 2: | |
| 3: | namespace PHPStan\Rules; |
| 4: | |
| 5: | use PHPStan\Turbo\ReferencedByTurboExtension; |
| 6: | use PHPStan\Type\Type; |
| 7: | |
| 8: | |
| 9: | |
| 10: | |
| 11: | #[ReferencedByTurboExtension(key: 'foundTypeResult')] |
| 12: | final class FoundTypeResult |
| 13: | { |
| 14: | |
| 15: | |
| 16: | |
| 17: | |
| 18: | |
| 19: | public function __construct( |
| 20: | private Type $type, |
| 21: | private array $referencedClasses, |
| 22: | private array $unknownClassErrors, |
| 23: | private ?string $tip, |
| 24: | ) |
| 25: | { |
| 26: | } |
| 27: | |
| 28: | public function getType(): Type |
| 29: | { |
| 30: | return $this->type; |
| 31: | } |
| 32: | |
| 33: | |
| 34: | |
| 35: | |
| 36: | public function getReferencedClasses(): array |
| 37: | { |
| 38: | return $this->referencedClasses; |
| 39: | } |
| 40: | |
| 41: | |
| 42: | |
| 43: | |
| 44: | public function getUnknownClassErrors(): array |
| 45: | { |
| 46: | return $this->unknownClassErrors; |
| 47: | } |
| 48: | |
| 49: | public function getTip(): ?string |
| 50: | { |
| 51: | return $this->tip; |
| 52: | } |
| 53: | |
| 54: | } |
| 55: | |