src/Argument/Argument.php
public static function createFromArray($name, array $params)
    {
        $argument = new Argument($name);
        $params   = self::getSettableArgumentParams($params);

        foreach ($params as $key => $value) {
            $method = 'set' . ucwords($key);
            $argument->{$method}($value);
        }

        return $argument;
    }
public static function createFromArray($name, array $params)
    {
        $argument = new Argument($name);
        $params   = self::getSettableArgumentParams($params);

        foreach ($params as $key => $value) {
            $method = 'set' . ucwords($key);
            $argument->{$method}($value);
        }

        return $argument;
    }
public static function createFromArray ( $ name , array $ params ) { $ argument = new Argument ( $ name ) ; $ params = self :: getSettableArgumentParams ( $ params ) ; foreach ( $ params as $ key => $ value ) { $ method = 'set' . ucwords ( $ key ) ; $ argument -> { $ method } ( $ value ) ; } return $ argument ; }
Build a new command argument from an array.

@param string $name
@param array $params

@return Argument
Build a new command argument from an array .