public function addBehaviors(array $behaviors)
    {
        foreach ($behaviors as $name => $options) {
            if (is_int($name)) {
                $name = $options;
                $options = [];
            }

            $this->addBehavior($name, $options);
        }

        return $this;
    }
public function addBehaviors(array $behaviors)
    {
        foreach ($behaviors as $name => $options) {
            if (is_int($name)) {
                $name = $options;
                $options = [];
            }

            $this->addBehavior($name, $options);
        }

        return $this;
    }
public function addBehaviors ( array $ behaviors ) { foreach ( $ behaviors as $ name => $ options ) { if ( is_int ( $ name ) ) { $ name = $ options ; $ options = [ ] ; } $ this -> addBehavior ( $ name , $ options ) ; } return $ this ; }
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.
Adds an array of behaviors to the table s behavior collection .