public function addContainer($container, $types = [], $defaultFormat = null, $formats = [])
    {
        if (isset($this->containers[$container])) {
            return $this;
        }

        $this->containers[$container] = new NotificationsBag($container, $types, $defaultFormat, $formats);
        $this->containers[$container]->setNotification($this);

        return $this;
    }
public function addContainer($container, $types = [], $defaultFormat = null, $formats = [])
    {
        if (isset($this->containers[$container])) {
            return $this;
        }

        $this->containers[$container] = new NotificationsBag($container, $types, $defaultFormat, $formats);
        $this->containers[$container]->setNotification($this);

        return $this;
    }
public function addContainer ( $ container , $ types = [ ] , $ defaultFormat = null , $ formats = [ ] ) { if ( isset ( $ this -> containers [ $ container ] ) ) { return $ this ; } $ this -> containers [ $ container ] = new NotificationsBag ( $ container , $ types , $ defaultFormat , $ formats ) ; $ this -> containers [ $ container ] -> setNotification ( $ this ) ; return $ this ; }
Add new container.

@param string $container
@param array $types
@param null $defaultFormat
@param array $formats
@return \Krucas\Notification\Notification
Add new container .