public function setOpt($opt)
    {
        if ($this->currentStep > 0) {
            throw new \Exception("setOpt method must be called before exec method.", 1);
        }
        foreach ($opt as $key => $value) {
            $this->userOpt[$key] = $value;
        }
    }
public function setOpt($opt)
    {
        if ($this->currentStep > 0) {
            throw new \Exception("setOpt method must be called before exec method.", 1);
        }
        foreach ($opt as $key => $value) {
            $this->userOpt[$key] = $value;
        }
    }
public function setOpt ( $ opt ) { if ( $ this -> currentStep > 0 ) { throw new \ Exception ( "setOpt method must be called before exec method." , 1 ) ; } foreach ( $ opt as $ key => $ value ) { $ this -> userOpt [ $ key ] = $ value ; } }
Define user opt.

@param array $opt
Define user opt .