Skip to content

Commit

Permalink
Return $this in the setters of the SendCustomNotificationCommand
Browse files Browse the repository at this point in the history
Further fixed bad PHPDoc.
  • Loading branch information
lippserd committed Apr 15, 2015
1 parent d882ea1 commit b8849c0
Showing 1 changed file with 17 additions and 13 deletions.
Expand Up @@ -15,29 +15,27 @@ class SendCustomNotificationCommand extends WithCommentCommand
self::TYPE_HOST,
self::TYPE_SERVICE
);

/**
* Whether a notification is forced to send
* Whether the notification is forced
*
* Forced notifications are send regardless of time and if notifications
* are enabled.
* Forced notifications are sent out regardless of time restrictions and whether or not notifications are enabled.
*
* @var bool
*/
protected $forced;

/**
* Broadcast the notification
* Whether to broadcast the notification
*
* If broadcast is true, the notification is send to all normal and
* escalated contacts for the object
* Broadcast notifications are sent out to all normal and escalated contacts.
*
* @var bool
*/
protected $broadcast;

/**
* Get notification force flag
* Get whether to force the notification
*
* @return bool
*/
Expand All @@ -47,17 +45,20 @@ public function getForced()
}

/**
* Set whether notification should be forced
* Set whether to force the notification
*
* @param bool $forced
*
* @param bool $forced
* @return $this
*/
public function setForced($forced = true)
{
$this->forced = $forced;
return $this;
}

/**
* Get notification broadcast flag
* Get whether to broadcast the notification
*
* @return bool
*/
Expand All @@ -67,12 +68,15 @@ public function getBroadcast()
}

/**
* Set notification to broadcast
* Set whether to broadcast the notification
*
* @param bool $broadcast
*
* @param bool $broadcast
* @return $this
*/
public function setBroadcast($broadcast = true)
{
$this->broadcast = $broadcast;
return $this;
}
}

0 comments on commit b8849c0

Please sign in to comment.