original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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
docstring_tokens: Configure dispatcher options