public function setOption($option, $value) {
        switch ($option) {
            case self::OPT_THREAD_FLAGS:
                $this->setThreadStartFlags($value); break;
            case self::OPT_POOL_SIZE_MIN:
                $this->setPoolSizeMin($value); break;
            case self::OPT_POOL_SIZE_MAX:
                $this->setPoolSizeMax($value); break;
            case self::OPT_TASK_TIMEOUT:
                $this->setTaskTimeout($value); break;
            case self::OPT_IDLE_WORKER_TIMEOUT:
                $this->setIdleWorkerTimeout($value); break;
            case self::OPT_EXEC_LIMIT:
                $this->setExecutionLimit($value); break;
            case self::OPT_IPC_URI:
                $this->setIpcUri($value); break;
            case self::OPT_UNIX_IPC_DIR:
                $this->setUnixIpcSocketDir($value); break;
            default:
                throw new \DomainException(
                    sprintf('Unknown option: %s', $option)
                );
        }

        return $this;
    }
public function setOption($option, $value) {
        switch ($option) {
            case self::OPT_THREAD_FLAGS:
                $this->setThreadStartFlags($value); break;
            case self::OPT_POOL_SIZE_MIN:
                $this->setPoolSizeMin($value); break;
            case self::OPT_POOL_SIZE_MAX:
                $this->setPoolSizeMax($value); break;
            case self::OPT_TASK_TIMEOUT:
                $this->setTaskTimeout($value); break;
            case self::OPT_IDLE_WORKER_TIMEOUT:
                $this->setIdleWorkerTimeout($value); break;
            case self::OPT_EXEC_LIMIT:
                $this->setExecutionLimit($value); break;
            case self::OPT_IPC_URI:
                $this->setIpcUri($value); break;
            case self::OPT_UNIX_IPC_DIR:
                $this->setUnixIpcSocketDir($value); break;
            default:
                throw new \DomainException(
                    sprintf('Unknown option: %s', $option)
                );
        }

        return $this;
    }
public function setOption ( $ option , $ value ) { switch ( $ option ) { case self :: OPT_THREAD_FLAGS : $ this -> setThreadStartFlags ( $ value ) ; break ; case self :: OPT_POOL_SIZE_MIN : $ this -> setPoolSizeMin ( $ value ) ; break ; case self :: OPT_POOL_SIZE_MAX : $ this -> setPoolSizeMax ( $ value ) ; break ; case self :: OPT_TASK_TIMEOUT : $ this -> setTaskTimeout ( $ value ) ; break ; case self :: OPT_IDLE_WORKER_TIMEOUT : $ this -> setIdleWorkerTimeout ( $ value ) ; break ; case self :: OPT_EXEC_LIMIT : $ this -> setExecutionLimit ( $ value ) ; break ; case self :: OPT_IPC_URI : $ this -> setIpcUri ( $ value ) ; break ; case self :: OPT_UNIX_IPC_DIR : $ this -> setUnixIpcSocketDir ( $ value ) ; break ; default : throw new \ DomainException ( sprintf ( 'Unknown option: %s' , $ option ) ) ; } return $ this ; }
Configure dispatcher options

@param string $option A case-insensitive option key
@param mixed $value The value to assign
@throws \DomainException On unknown option key
@return \Amp\Dispatcher Returns the current object instance
Configure dispatcher options