public function setOption($name, $value)
    {
        $methodName = 'set' . ucfirst($name);
        if (!method_exists($this, $methodName)) {
            throw new RuntimeException('Method not exists: ' . $methodName);
        }
        return $this->$methodName($value);
    }
public function setOption($name, $value)
    {
        $methodName = 'set' . ucfirst($name);
        if (!method_exists($this, $methodName)) {
            throw new RuntimeException('Method not exists: ' . $methodName);
        }
        return $this->$methodName($value);
    }
public function setOption ( $ name , $ value ) { $ methodName = 'set' . ucfirst ( $ name ) ; if ( ! method_exists ( $ this , $ methodName ) ) { throw new RuntimeException ( 'Method not exists: ' . $ methodName ) ; } return $ this -> $ methodName ( $ value ) ; }
Set option
Fluent interface
@param $name
@param $value
@return $this
Set option Fluent interface