public function addToGrouping($type)
    {
        if (!$this->typeIsAvailable($type)) {
            return $this;
        }

        if (!in_array($type, $this->groupForRender)) {
            $this->groupForRender[] = $type;
        }

        return $this;
    }
public function addToGrouping($type)
    {
        if (!$this->typeIsAvailable($type)) {
            return $this;
        }

        if (!in_array($type, $this->groupForRender)) {
            $this->groupForRender[] = $type;
        }

        return $this;
    }
public function addToGrouping ( $ type ) { if ( ! $ this -> typeIsAvailable ( $ type ) ) { return $ this ; } if ( ! in_array ( $ type , $ this -> groupForRender ) ) { $ this -> groupForRender [ ] = $ type ; } return $ this ; }
Adds type for rendering.

@param $type
@return \Krucas\Notification\NotificationsBag
Adds type for rendering .