Skip to content

Commit

Permalink
Make optional message properties really optional in the code by defau…
Browse files Browse the repository at this point in the history
…lting to null
  • Loading branch information
Kovah committed Mar 19, 2024
1 parent 0698f1a commit 1630d07
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/PushoverMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,67 +24,67 @@ class PushoverMessage
/**
* The (optional) title of the message.
*
* @var string
* @var string|null
*/
public string $title;
public string|null $title = null;

/**
* The (optional) timestamp of the message.
*
* @var int
* @var int|null
*/
public int $timestamp;
public int|null $timestamp = null;

/**
* The (optional) priority of the message.
*
* @var int
* @var int|null
*/
public int $priority;
public int|null $priority = null;

/**
* The (optional) timeout between retries when sending a message
* with an emergency priority. The timeout is in seconds.
*
* @var int|null
*/
public int|null $retry;
public int|null $retry = null;

/**
* The (optional) expire time of a message with an emergency priority.
* The expire time is in seconds.
*
* @var int|null
*/
public int|null $expire;
public int|null $expire = null;

/**
* The (optional) supplementary url of the message.
*
* @var string
* @var string|null
*/
public string $url;
public string|null $url = null;

/**
* The (optional) supplementary url title of the message.
*
* @var string
* @var string|null
*/
public string $urlTitle;
public string|null $urlTitle = null;

/**
* The (optional) sound of the message.
*
* @var string
* @var string|null
*/
public string $sound;
public string|null $sound = null;

/**
* The (optional) image to be attached to the message.
*
* @var string
* @var string|null
*/
public string $image = '';
public string|null $image = null;

/**
* Message formats.
Expand Down

0 comments on commit 1630d07

Please sign in to comment.