public static function create($type, $values)
    {
        $i = new static($type);
        $i->usePropertyValues($values);
        return $i->createInstance();
    }
public static function create($type, $values)
    {
        $i = new static($type);
        $i->usePropertyValues($values);
        return $i->createInstance();
    }
public static function create ( $ type , $ values ) { $ i = new static ( $ type ) ; $ i -> usePropertyValues ( $ values ) ; return $ i -> createInstance ( ) ; }
Creates instance of specified type and returns it as result.

@param string $type
@param array $values
@return mixed
Creates instance of specified type and returns it as result .