public function getAllClasses() : array
    {
        /** @var ReflectionClass[] $allClasses */
        $allClasses = $this->sourceLocator->locateIdentifiersByType(
            $this,
            new IdentifierType(IdentifierType::IDENTIFIER_CLASS)
        );

        return $allClasses;
    }
public function getAllClasses() : array
    {
        /** @var ReflectionClass[] $allClasses */
        $allClasses = $this->sourceLocator->locateIdentifiersByType(
            $this,
            new IdentifierType(IdentifierType::IDENTIFIER_CLASS)
        );

        return $allClasses;
    }
public function getAllClasses ( ) : array { /** @var ReflectionClass[] $allClasses */ $ allClasses = $ this -> sourceLocator -> locateIdentifiersByType ( $ this , new IdentifierType ( IdentifierType :: IDENTIFIER_CLASS ) ) ; return $ allClasses ; }
Get all the classes available in the scope specified by the SourceLocator.

@return ReflectionClass[]
Get all the classes available in the scope specified by the SourceLocator .