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