public static function number($name, $value, array $attributes = array())
    {
        $node = new Node\Number();

        if (!is_null($name)) {
            $attributes['name'] = $name;
        }

        if (!is_null($value)) {
            $attributes['value'] = $value;
        }

        return $node->render($attributes);
    }
public static function number($name, $value, array $attributes = array())
    {
        $node = new Node\Number();

        if (!is_null($name)) {
            $attributes['name'] = $name;
        }

        if (!is_null($value)) {
            $attributes['value'] = $value;
        }

        return $node->render($attributes);
    }
public static function number ( $ name , $ value , array $ attributes = array ( ) ) { $ node = new Node \ Number ( ) ; if ( ! is_null ( $ name ) ) { $ attributes [ 'name' ] = $ name ; } if ( ! is_null ( $ value ) ) { $ attributes [ 'value' ] = $ value ; } return $ node -> render ( $ attributes ) ; }
Creates number input element

@param string $name Element name
@param string $value Element value
@param array $attributes Extra attributes
@return string
Creates number input element