src/Wrep/Notificato/Apns/Message.php
private function setBadge($badge)
	{
		// Validate the badge int
		if ((int)$badge < 0) {
			throw new \InvalidArgumentException('Badge must be 0 or higher.');
		}

		// Cast to int or set to null
		$this->badge = (null === $badge) ? null : (int)$badge;
	}
private function setBadge($badge)
	{
		// Validate the badge int
		if ((int)$badge < 0) {
			throw new \InvalidArgumentException('Badge must be 0 or higher.');
		}

		// Cast to int or set to null
		$this->badge = (null === $badge) ? null : (int)$badge;
	}
private function setBadge ( $ badge ) { // Validate the badge int if ( ( int ) $ badge < 0 ) { throw new \ InvalidArgumentException ( 'Badge must be 0 or higher.' ) ; } // Cast to int or set to null $ this -> badge = ( null === $ badge ) ? null : ( int ) $ badge ; }
Set the badge to display on the App icon

@param int|null The badge number to display, zero to remove badge
@throws \InvalidArgumentException On invalid or missing arguments
Set the badge to display on the App icon