JBZoo\SimpleTypes\Config\Config::getDefault PHP 메소드

getDefault() 공개 정적인 메소드

public static getDefault ( string $type ) : Config
$type string
리턴 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

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