src/Environment.php
public static function get(string $projectRoot, $default = self::ENV_PRODUCTION, array $allowed = []): string
    {
        return (static::create($projectRoot, $default, $allowed))->name();
    }
public static function get(string $projectRoot, $default = self::ENV_PRODUCTION, array $allowed = []): string
    {
        return (static::create($projectRoot, $default, $allowed))->name();
    }
public static function get ( string $ projectRoot , $ default = self :: ENV_PRODUCTION , array $ allowed = [ ] ) : string { return ( static :: create ( $ projectRoot , $ default , $ allowed ) ) -> name ( ) ; }
Get the environment

@param string $projectRoot
@param string $default
@param array $allowed
@return string
Get the environment