public function build($type = self::INFO, $header = false, $timeout = false, $disposable = false)
    {
        // Normalize type
        $type = (empty($type) ? self::INFO : $type);
        $this->addClass($type);

        // Set timeout class
        if ($timeout) {
            $this->addClass('timeout');
        }

        // Build Header (if any)
        if ($header) {
            $this->buildHead($type, $disposable);
        }

        // Build Body
        return $this->buildBody();
    }
public function build($type = self::INFO, $header = false, $timeout = false, $disposable = false)
    {
        // Normalize type
        $type = (empty($type) ? self::INFO : $type);
        $this->addClass($type);

        // Set timeout class
        if ($timeout) {
            $this->addClass('timeout');
        }

        // Build Header (if any)
        if ($header) {
            $this->buildHead($type, $disposable);
        }

        // Build Body
        return $this->buildBody();
    }
public function build ( $ type = self :: INFO , $ header = false , $ timeout = false , $ disposable = false ) { // Normalize type $ type = ( empty ( $ type ) ? self :: INFO : $ type ) ; $ this -> addClass ( $ type ) ; // Set timeout class if ( $ timeout ) { $ this -> addClass ( 'timeout' ) ; } // Build Header (if any) if ( $ header ) { $ this -> buildHead ( $ type , $ disposable ) ; } // Build Body return $ this -> buildBody ( ) ; }
Builds the notification.

@param string $type       The notification's type. Use class constants to define this type.
It is INFO by default.
@param bool   $header     Specified whether the notification will have header or not.
@param bool   $timeout    If TRUE, sets the notification to fade out after 1.5 seconds.
@param bool   $disposable Lets the user to be able to close the notification.

@return $this
@throws Exception
Builds the notification .