src/Schema.php
private function getType($alias) {
        if (isset(self::$types[$alias])) {
            return $alias;
        }
        foreach (self::$types as $type => $aliases) {
            if (in_array($alias, $aliases, true)) {
                return $type;
            }
        }
        return null;
    }
private function getType($alias) {
        if (isset(self::$types[$alias])) {
            return $alias;
        }
        foreach (self::$types as $type => $aliases) {
            if (in_array($alias, $aliases, true)) {
                return $type;
            }
        }
        return null;
    }
private function getType ( $ alias ) { if ( isset ( self :: $ types [ $ alias ] ) ) { return $ alias ; } foreach ( self :: $ types as $ type => $ aliases ) { if ( in_array ( $ alias , $ aliases , true ) ) { return $ type ; } } return null ; }
Look up a type based on its alias.

@param string $alias The type alias or type name to lookup.
@return mixed
Look up a type based on its alias .