src/Convention.php
public static function nameToClass($name, $type)
    {
        if (!isset(self::$masks[$type])) {
            throw new InvalidArgumentException(
                "Invalid mask type " . $type . "!"
            );
        }
        return str_replace("*", $name, self::$masks[$type]);
    }
public static function nameToClass($name, $type)
    {
        if (!isset(self::$masks[$type])) {
            throw new InvalidArgumentException(
                "Invalid mask type " . $type . "!"
            );
        }
        return str_replace("*", $name, self::$masks[$type]);
    }
public static function nameToClass ( $ name , $ type ) { if ( ! isset ( self :: $ masks [ $ type ] ) ) { throw new InvalidArgumentException ( "Invalid mask type " . $ type . "!" ) ; } return str_replace ( "*" , $ name , self :: $ masks [ $ type ] ) ; }
Converts name to class

@param string  $name
@param integer $type

@return string

@throws InvalidArgumentException
Converts name to class