JBZoo\SimpleTypes\Config\Config::getDefault PHP Method

getDefault() public static method

public static getDefault ( string $type ) : Config
$type string
return Config
    public static function getDefault($type)
    {
        $type = trim(strtolower($type));
        if (array_key_exists($type, self::$_configs)) {
            return self::$_configs[$type];
        }
        return null;
    }

Usage Example

Example #1
0
 public function testEmptyDefault()
 {
     is(null, Config::getDefault('undefined'));
 }
All Usage Examples Of JBZoo\SimpleTypes\Config\Config::getDefault