original_string: public function addBehaviors(array $behaviors)
      {
          foreach ($behaviors as $name => $options) {
              if (is_int($name)) {
                  $name = $options;
                  $options = [];
              }
  
              $this->addBehavior($name, $options);
          }
  
          return $this;
      }
code: public function addBehaviors(array $behaviors)
      {
          foreach ($behaviors as $name => $options) {
              if (is_int($name)) {
                  $name = $options;
                  $options = [];
              }
  
              $this->addBehavior($name, $options);
          }
  
          return $this;
      }
code_tokens: public function addBehaviors ( array $ behaviors ) { foreach ( $ behaviors as $ name => $ options ) { if ( is_int ( $ name ) ) { $ name = $ options ; $ options = [ ] ; } $ this -> addBehavior ( $ name , $ options ) ; } return $ this ; }
docstring: Adds an array of behaviors to the table's behavior collection.
  
  Example:
  
  ```
  $this->addBehaviors([
  'Timestamp',
  'Tree' => ['level' => 'level'],
  ]);
  ```
  
  @param array $behaviors All of the behaviors to load.
  @return $this
  @throws \RuntimeException If a behavior is being reloaded.
docstring_tokens: Adds an array of behaviors to the table s behavior collection .