public static function root($environments, $envName, $projectPath)
    {
        $root = new static();
        $root->environments = $environments;
        $root->envName = $envName;
        $root->projectPath = $projectPath;

        $root->verifyEnv($envName);

        return $root;
    }
public static function root($environments, $envName, $projectPath)
    {
        $root = new static();
        $root->environments = $environments;
        $root->envName = $envName;
        $root->projectPath = $projectPath;

        $root->verifyEnv($envName);

        return $root;
    }
public static function root ( $ environments , $ envName , $ projectPath ) { $ root = new static ( ) ; $ root -> environments = $ environments ; $ root -> envName = $ envName ; $ root -> projectPath = $ projectPath ; $ root -> verifyEnv ( $ envName ) ; return $ root ; }
The constructor for ConfigBag.

@param MutableBag|MutableBag[] $environments Configs for mapped to environment names
@param string                  $envName      The current environment name
@param string                  $projectPath  The project root path

@return static
The constructor for ConfigBag .