public function getInstallScript()
    {
        if (! $this->installScript) {
            $installClass = $this->installNamespace.'Install';

            if (! class_exists($installClass)) {
                $message = sprintf('No install class found at %s. Nothing to do.', $installClass);

                throw new RuntimeException($message);
            }

            $installScript = new $installClass;

            $this->installScript = $installScript;
        }

        return $this->installScript;
    }
public function getInstallScript()
    {
        if (! $this->installScript) {
            $installClass = $this->installNamespace.'Install';

            if (! class_exists($installClass)) {
                $message = sprintf('No install class found at %s. Nothing to do.', $installClass);

                throw new RuntimeException($message);
            }

            $installScript = new $installClass;

            $this->installScript = $installScript;
        }

        return $this->installScript;
    }
public function getInstallScript ( ) { if ( ! $ this -> installScript ) { $ installClass = $ this -> installNamespace . 'Install' ; if ( ! class_exists ( $ installClass ) ) { $ message = sprintf ( 'No install class found at %s. Nothing to do.' , $ installClass ) ; throw new RuntimeException ( $ message ) ; } $ installScript = new $ installClass ; $ this -> installScript = $ installScript ; } return $ this -> installScript ; }
Get install script

Use injected script if it exist, otherwise instantiate the default.

@return AbstractInstall
@throws RuntimeException If the install class cannot be found
Get install script