src/Payload.php
public function setAlert($alert): Payload
    {
        if ($alert instanceof Alert || is_string($alert)) {
            $this->alert = $alert;
        }

        return $this;
    }
public function setAlert($alert): Payload
    {
        if ($alert instanceof Alert || is_string($alert)) {
            $this->alert = $alert;
        }

        return $this;
    }
public function setAlert ( $ alert ) : Payload { if ( $ alert instanceof Alert || is_string ( $ alert ) ) { $ this -> alert = $ alert ; } return $ this ; }
Set Alert.

@param Alert|string $alert
@return Payload
Set Alert .