private function buildHead($title, $disposable = false)
    {
        // Build Head Element
        $head = $this->getHTMLDocument()->getHTMLFactory()->buildHtmlElement('div', $title, '', 'ui-notification-head');
        $this->append($head);

        // Populate the close button
        if ($disposable) {
            $closeBtn = $this->getHTMLDocument()->getHTMLFactory()->buildHtmlElement('span', '', '', 'button-close');
            $head->append($closeBtn);
        }

        return $this;
    }
private function buildHead($title, $disposable = false)
    {
        // Build Head Element
        $head = $this->getHTMLDocument()->getHTMLFactory()->buildHtmlElement('div', $title, '', 'ui-notification-head');
        $this->append($head);

        // Populate the close button
        if ($disposable) {
            $closeBtn = $this->getHTMLDocument()->getHTMLFactory()->buildHtmlElement('span', '', '', 'button-close');
            $head->append($closeBtn);
        }

        return $this;
    }
private function buildHead ( $ title , $ disposable = false ) { // Build Head Element $ head = $ this -> getHTMLDocument ( ) -> getHTMLFactory ( ) -> buildHtmlElement ( 'div' , $ title , '' , 'ui-notification-head' ) ; $ this -> append ( $ head ) ; // Populate the close button if ( $ disposable ) { $ closeBtn = $ this -> getHTMLDocument ( ) -> getHTMLFactory ( ) -> buildHtmlElement ( 'span' , '' , '' , 'button-close' ) ; $ head -> append ( $ closeBtn ) ; } return $ this ; }
Builds the notification header.

@param HTMLElement|string $title      The header's title.
@param bool               $disposable Adds a close button to header and lets the user to be able to close the
notification.

@return $this
@throws InvalidArgumentException
Builds the notification header .