original_string: public function setOptions(array $options = null): void
      {
          // store options by default
          $this->options = (array)$options;
  
          // apply options
          foreach ($this->options as $key => $value) {
              $this->setOption($key, $value);
          }
      }
code: public function setOptions(array $options = null): void
      {
          // store options by default
          $this->options = (array)$options;
  
          // apply options
          foreach ($this->options as $key => $value) {
              $this->setOption($key, $value);
          }
      }
code_tokens: public function setOptions ( array $ options = null ) : void { // store options by default $ this -> options = ( array ) $ options ; // apply options foreach ( $ this -> options as $ key => $ value ) { $ this -> setOption ( $ key , $ value ) ; } }
docstring: Setup, check and init options
  
  Requirements
  - options must be a array
  - options can be null
  
  @param  array $options
  
  @return void
docstring_tokens: Setup check and init options