src/AbstractModule.php
final public function getModuleDir()
    {
        if (! $this->moduleDir) {
            $reflection      = new ReflectionClass(static::class);
            $this->moduleDir = dirname($reflection->getFileName());
        }

        return $this->moduleDir;
    }
final public function getModuleDir()
    {
        if (! $this->moduleDir) {
            $reflection      = new ReflectionClass(static::class);
            $this->moduleDir = dirname($reflection->getFileName());
        }

        return $this->moduleDir;
    }
Gets the module directory.

@return string The module directory