public function newValue($name, $group = null)
    {
        $arg = OptionItem::createValue($name);

        if ($this->obj_color->opt) {
            $arg->color($this->obj_color->opt);
        }

        if ($this->obj_color->bold) {
            $arg->bold();
        }

        self::add($arg, $group);

        return self::getOpt($name);
    }
public function newValue($name, $group = null)
    {
        $arg = OptionItem::createValue($name);

        if ($this->obj_color->opt) {
            $arg->color($this->obj_color->opt);
        }

        if ($this->obj_color->bold) {
            $arg->bold();
        }

        self::add($arg, $group);

        return self::getOpt($name);
    }
public function newValue ( $ name , $ group = null ) { $ arg = OptionItem :: createValue ( $ name ) ; if ( $ this -> obj_color -> opt ) { $ arg -> color ( $ this -> obj_color -> opt ) ; } if ( $ this -> obj_color -> bold ) { $ arg -> bold ( ) ; } self :: add ( $ arg , $ group ) ; return self :: getOpt ( $ name ) ; }
Adds a new option's value.

@param  string     $name  Option's name.
@param  string     $group Optional group's name.
@access public
@return OptionItem
Adds a new option s value .