private function getPayloadAlertKeyValue()
    {
        // Alert "string" (simple alert)
        if ($this->getSimpleAlert()) {
            return $this->getSimpleAlert();
        }

        // Alert "array" (complex alert)
        $payloadAlert = array();

        if ($this->getAlertTitle()) {
            $payloadAlert['title'] = $this->getAlertTitle();
        }
        if ($this->getAlertBody()) {
            $payloadAlert['body'] = $this->getAlertBody();
        }
        if ($this->getAlertTitleLocKey()) {
            $payloadAlert['title-loc-key'] = $this->getAlertTitleLocKey();
        }
        if ($this->getAlertTitleLocArgs()) {
            $payloadAlert['title-loc-args'] = $this->getAlertTitleLocArgs();
        }
        if ($this->getAlertActionLocKey()) {
            $payloadAlert['action-loc-key'] = $this->getAlertActionLocKey();
        }
        if ($this->getAlertLocKey()) {
            $payloadAlert['loc-key'] = $this->getAlertLocKey();
        }
        if ($this->getAlertLocArgs()) {
            $payloadAlert['loc-args'] = $this->getAlertLocArgs();
        }
        if ($this->getAlertLaunchImage()) {
            $payloadAlert['launch-image'] = $this->getAlertLaunchImage();
        }
        if ($this->getAction()) {
            $payloadAlert['action'] = $this->getAction();
        }

        return $payloadAlert;
    }
private function getPayloadAlertKeyValue()
    {
        // Alert "string" (simple alert)
        if ($this->getSimpleAlert()) {
            return $this->getSimpleAlert();
        }

        // Alert "array" (complex alert)
        $payloadAlert = array();

        if ($this->getAlertTitle()) {
            $payloadAlert['title'] = $this->getAlertTitle();
        }
        if ($this->getAlertBody()) {
            $payloadAlert['body'] = $this->getAlertBody();
        }
        if ($this->getAlertTitleLocKey()) {
            $payloadAlert['title-loc-key'] = $this->getAlertTitleLocKey();
        }
        if ($this->getAlertTitleLocArgs()) {
            $payloadAlert['title-loc-args'] = $this->getAlertTitleLocArgs();
        }
        if ($this->getAlertActionLocKey()) {
            $payloadAlert['action-loc-key'] = $this->getAlertActionLocKey();
        }
        if ($this->getAlertLocKey()) {
            $payloadAlert['loc-key'] = $this->getAlertLocKey();
        }
        if ($this->getAlertLocArgs()) {
            $payloadAlert['loc-args'] = $this->getAlertLocArgs();
        }
        if ($this->getAlertLaunchImage()) {
            $payloadAlert['launch-image'] = $this->getAlertLaunchImage();
        }
        if ($this->getAction()) {
            $payloadAlert['action'] = $this->getAction();
        }

        return $payloadAlert;
    }
private function getPayloadAlertKeyValue ( ) { // Alert "string" (simple alert) if ( $ this -> getSimpleAlert ( ) ) { return $ this -> getSimpleAlert ( ) ; } // Alert "array" (complex alert) $ payloadAlert = array ( ) ; if ( $ this -> getAlertTitle ( ) ) { $ payloadAlert [ 'title' ] = $ this -> getAlertTitle ( ) ; } if ( $ this -> getAlertBody ( ) ) { $ payloadAlert [ 'body' ] = $ this -> getAlertBody ( ) ; } if ( $ this -> getAlertTitleLocKey ( ) ) { $ payloadAlert [ 'title-loc-key' ] = $ this -> getAlertTitleLocKey ( ) ; } if ( $ this -> getAlertTitleLocArgs ( ) ) { $ payloadAlert [ 'title-loc-args' ] = $ this -> getAlertTitleLocArgs ( ) ; } if ( $ this -> getAlertActionLocKey ( ) ) { $ payloadAlert [ 'action-loc-key' ] = $ this -> getAlertActionLocKey ( ) ; } if ( $ this -> getAlertLocKey ( ) ) { $ payloadAlert [ 'loc-key' ] = $ this -> getAlertLocKey ( ) ; } if ( $ this -> getAlertLocArgs ( ) ) { $ payloadAlert [ 'loc-args' ] = $ this -> getAlertLocArgs ( ) ; } if ( $ this -> getAlertLaunchImage ( ) ) { $ payloadAlert [ 'launch-image' ] = $ this -> getAlertLaunchImage ( ) ; } if ( $ this -> getAction ( ) ) { $ payloadAlert [ 'action' ] = $ this -> getAction ( ) ; } return $ payloadAlert ; }
Get the value of the payload "alert" key.

@return string|array
Get the value of the payload alert key .