private function setOptionValue(Option $Option, $value) {
        $Option->setValue($value);
        $long = $Option->getLong();
        if (isset($this->events[$long])) {
            $Handler = $this->events[$long];
            $Handler($long, $value);
        }
    }
private function setOptionValue(Option $Option, $value) {
        $Option->setValue($value);
        $long = $Option->getLong();
        if (isset($this->events[$long])) {
            $Handler = $this->events[$long];
            $Handler($long, $value);
        }
    }
private function setOptionValue ( Option $ Option , $ value ) { $ Option -> setValue ( $ value ) ; $ long = $ Option -> getLong ( ) ; if ( isset ( $ this -> events [ $ long ] ) ) { $ Handler = $ this -> events [ $ long ] ; $ Handler ( $ long , $ value ) ; } }
Method to set option value and call event handler if needed
@param Option $Option instance of option
@param bool|string $value option value
Method to set option value and call event handler if needed