public function addType($type)
    {
        if (func_num_args() > 1) {
            foreach (func_get_args() as $t) {
                $this->addType($t);
            }
        } else {
            if (is_array($type)) {
                foreach ($type as $t) {
                    $this->addType($t);
                }
            } else {
                if (!$this->typeIsAvailable($type)) {
                    $this->types[] = $type;
                }
            }
        }

        return $this;
    }
public function addType($type)
    {
        if (func_num_args() > 1) {
            foreach (func_get_args() as $t) {
                $this->addType($t);
            }
        } else {
            if (is_array($type)) {
                foreach ($type as $t) {
                    $this->addType($t);
                }
            } else {
                if (!$this->typeIsAvailable($type)) {
                    $this->types[] = $type;
                }
            }
        }

        return $this;
    }
public function addType ( $ type ) { if ( func_num_args ( ) > 1 ) { foreach ( func_get_args ( ) as $ t ) { $ this -> addType ( $ t ) ; } } else { if ( is_array ( $ type ) ) { foreach ( $ type as $ t ) { $ this -> addType ( $ t ) ; } } else { if ( ! $ this -> typeIsAvailable ( $ type ) ) { $ this -> types [ ] = $ type ; } } } return $ this ; }
Add new available type of message to bag.

@param $type
@return \Krucas\Notification\NotificationsBag
Add new available type of message to bag .