public function setFormats($formats)
    {
        foreach ($formats as $type => $format) {
            $this->setFormat($type, $format);
        }

        return $this;
    }
public function setFormats($formats)
    {
        foreach ($formats as $type => $format) {
            $this->setFormat($type, $format);
        }

        return $this;
    }
public function setFormats ( $ formats ) { foreach ( $ formats as $ type => $ format ) { $ this -> setFormat ( $ type , $ format ) ; } return $ this ; }
Set formats for a given types.

@param $formats
@return \Krucas\Notification\NotificationsBag
Set formats for a given types .