public function setBags(array $bags)
    {
        foreach ($bags as $name => $bag) {
            $this->setBag($name, $bag);
        }

        return $this;
    }
public function setBags(array $bags)
    {
        foreach ($bags as $name => $bag) {
            $this->setBag($name, $bag);
        }

        return $this;
    }
public function setBags ( array $ bags ) { foreach ( $ bags as $ name => $ bag ) { $ this -> setBag ( $ name , $ bag ) ; } return $ this ; }
Set Session bags.

@param   SessionBagInterface[] $bags

@return  Session  Return self to support chaining.

@since   2.0
Set Session bags .