code/libraries/joomlatools/library/command/command.php
final public function set($name, $value)
    {
        $method = 'set'.ucfirst($name);
        if(!method_exists($this, $method) ) {
            parent::set($name, $value);
        } else {
            $this->$method($value);
        }

        return $this;
    }
final public function set($name, $value)
    {
        $method = 'set'.ucfirst($name);
        if(!method_exists($this, $method) ) {
            parent::set($name, $value);
        } else {
            $this->$method($value);
        }

        return $this;
    }
final public function set ( $ name , $ value ) { $ method = 'set' . ucfirst ( $ name ) ; if ( ! method_exists ( $ this , $ method ) ) { parent :: set ( $ name , $ value ) ; } else { $ this -> $ method ( $ value ) ; } return $ this ; }
Set a command property or attribute

If an event property exists the property will be set, otherwise an attribute will be added.

@param  string $name
@param  mixed  $value
@return KCommand
Set a command property or attribute