*/ class ClassMap implements \Countable { /** @var array */ public $map = []; /** @var array> */ private $ambiguousClasses = []; /** @var string[] */ private $psrViolations = []; /** * Returns the class map, which is a list of paths indexed by class name * * @return array */ public function getMap(): array { return $this->map; } /** * Returns warning strings containing details about PSR-0/4 violations that were detected * * Violations are for ex a class which is in the wrong file/directory and thus should not be * found using psr-0/psr-4 autoloading but was found by the ClassMapGenerator as it scans all files. * * This is only happening when scanning paths using psr-0/psr-4 autoload type. Classmap type * always accepts every class as it finds it. * * @return string[] */ public function getPsrViolations(): array { return $this->psrViolations; } /** * A map of class names to their list of ambiguous paths * * This occurs when the same class can be found in several files * * To get the path the class is being mapped to, call getClassPath * * @return array> */ public function getAmbiguousClasses(): array { return $this->ambiguousClasses; } /** * Sorts the class map alphabetically by class names */ public function sort(): void { ksort($this->map); } /** * @param class-string $className * @param non-empty-string $path */ public function addClass(string $className, string $path): void { $this->map[$className] = $path; } /** * @param class-string $className * @return non-empty-string */ public function getClassPath(string $className): string { if (!isset($this->map[$className])) { throw new \OutOfBoundsException('Class '.$className.' is not present in the map'); } return $this->map[$className]; } /** * @param class-string $className */ public function hasClass(string $className): bool { return isset($this->map[$className]); } public function addPsrViolation(string $warning): void { $this->psrViolations[] = $warning; } /** * @param class-string $className * @param non-empty-string $path */ public function addAmbiguousClass(string $className, string $path): void { $this->ambiguousClasses[$className][] = $path; } public function count(): int { return \count($this->map); } } __halt_compiler();----SIGNATURE:----SfjKkNk6lbj9xNzA4GaWxKGV5hNf0bIeosWu45i/UnD5YizCcrdJpgNBDbcZpetZOozgE4pKiIUTI5xAnbjlEtHd6wCWFCXLhYAYLzXq7xxUl502OdlrO4FYG3ar+N9t3R6UbaLJKDXFQWhN95dAIY7nJFcDTp1UYm85fup+HtGJB33WGH+/KLjpzPFciexO86172WRISbx6c5i3qEL5MZ9a+ZO/Uwnmnqvuy+Wgi6OD93HUccV0wyw7cYxJR04lKMPIZii4vkuyGotVwe07GOP6RcgzP9NjaCZb6k9UR0IHX1W+Opkoh8dBnyd5wn5jy9gLi3F3eYidafjiPZN68Hw6akWdowGtFfpV6mhDbGLmzAGezCX/nrWk4jsTvzq74pA4657wz3kajXWD8BIEm781+NtzhkZSKQj970EYYFN2hujDZ1S0nvbHsqYcrSojCyF0IQ4b0tgFieQU3axzS2njLPXRhVOte+oJPYLb07p1gwPgbZmuzcPmjvoFH3F0MezudhwgWJFrxsPnzjHMerldzJUKTYtdowLgyOs+XJ+9sFiBYHiiO+loX5jTt67EM3aM2vAohU5nsI6ZLK0bA0ofJeSRZ0OmDndwhWgWLxGjC/1VQTRhxHUUMCN7WsSMyGJOvMA0eq6jvNfkztZkn0jHhiNv5WeOMOpOOecXKYo=----ATTACHMENT:----OTU5OTg3NjkyNjA2ODUwNiA1NTg0MjAwMDY2NDM2NTE5IDEyNjMyNzM5MzU0NjA1ODE=