library/Services/Library/DatabaseRestorer/DatabaseRestorerFactory.php
public function createRestorer($className)
    {
        if (!class_exists($className)) {
            $className = __NAMESPACE__ . '\\' . $className;
        }

        $restorer = class_exists($className) ? new $className : new DatabaseRestorer();

        if (!($restorer instanceof DatabaseRestorerInterface)) {
            throw new Exception("Database restorer class should implement DatabaseRestorerInterface interface!");
        }

        return $restorer;
    }
public function createRestorer($className)
    {
        if (!class_exists($className)) {
            $className = __NAMESPACE__ . '\\' . $className;
        }

        $restorer = class_exists($className) ? new $className : new DatabaseRestorer();

        if (!($restorer instanceof DatabaseRestorerInterface)) {
            throw new Exception("Database restorer class should implement DatabaseRestorerInterface interface!");
        }

        return $restorer;
    }
public function createRestorer ( $ className ) { if ( ! class_exists ( $ className ) ) { $ className = __NAMESPACE__ . '\\' . $ className ; } $ restorer = class_exists ( $ className ) ? new $ className : new DatabaseRestorer ( ) ; if ( ! ( $ restorer instanceof DatabaseRestorerInterface ) ) { throw new Exception ( "Database restorer class should implement DatabaseRestorerInterface interface!" ) ; } return $ restorer ; }
Creates and returns database restoration object.

@param $className
@return mixed
@throws Exception
Creates and returns database restoration object .