public function store($message, $bucket)
    {
        // Get current messages for bucket
        $messages = $this->fetch($bucket);
        // Check current message does not exist
        if (true === in_array($message, $messages)) {
            // If message already exists, do not add the duplicate
            return false;
        }
        // Add message to stack
        $messages[] = $message;
        // Return the message stack to the session
        $_SESSION[self::ROOT_NODE][$bucket] = $messages;
        // Report Success
        return true;
    }
public function store($message, $bucket)
    {
        // Get current messages for bucket
        $messages = $this->fetch($bucket);
        // Check current message does not exist
        if (true === in_array($message, $messages)) {
            // If message already exists, do not add the duplicate
            return false;
        }
        // Add message to stack
        $messages[] = $message;
        // Return the message stack to the session
        $_SESSION[self::ROOT_NODE][$bucket] = $messages;
        // Report Success
        return true;
    }
public function store ( $ message , $ bucket ) { // Get current messages for bucket $ messages = $ this -> fetch ( $ bucket ) ; // Check current message does not exist if ( true === in_array ( $ message , $ messages ) ) { // If message already exists, do not add the duplicate return false ; } // Add message to stack $ messages [ ] = $ message ; // Return the message stack to the session $ _SESSION [ self :: ROOT_NODE ] [ $ bucket ] = $ messages ; // Report Success return true ; }
Store the notifications using the driver

@param string $message
@param string $bucket
@return bool
Store the notifications using the driver