public function setFormat($type, $format)
    {
        if ($this->typeIsAvailable($type)) {
            $this->formats[$type] = $format;
        }

        return $this;
    }
public function setFormat($type, $format)
    {
        if ($this->typeIsAvailable($type)) {
            $this->formats[$type] = $format;
        }

        return $this;
    }
public function setFormat ( $ type , $ format ) { if ( $ this -> typeIsAvailable ( $ type ) ) { $ this -> formats [ $ type ] = $ format ; } return $ this ; }
Set format for a given type.

@param $type
@param $format
@return \Krucas\Notification\NotificationsBag
Set format for a given type .