public function classesByPath($path)
    {
        $this->typeCheck->classesByPath(func_get_args());

        if ($this->isolator->is_dir($path)) {
            return $this->classesByDirectory($path);
        }

        return $this->classesByFile($path);
    }
public function classesByPath($path)
    {
        $this->typeCheck->classesByPath(func_get_args());

        if ($this->isolator->is_dir($path)) {
            return $this->classesByDirectory($path);
        }

        return $this->classesByFile($path);
    }
@param string $path

@return array<ClassDefinition>