| Total Complexity | 5 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 91.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class ClassNameFinder implements ClassNameFinderInterface |
||
| 11 | { |
||
| 12 | /** @var array<string,array<string,string>> */ |
||
| 13 | private static array $cachedClassNames = []; |
||
| 14 | |||
| 15 | /** @var list<FinderRuleInterface> */ |
||
| 16 | private array $finderRules; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param list<FinderRuleInterface> $finderRules |
||
| 20 | */ |
||
| 21 | 15 | public function __construct(array $finderRules) |
|
| 22 | { |
||
| 23 | 15 | $this->finderRules = $finderRules; |
|
| 24 | 15 | } |
|
| 25 | |||
| 26 | 15 | public function findClassName(ClassInfo $classInfo, string $resolvableType): ?string |
|
| 41 | } |
||
| 42 | } |
||
| 43 |