for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Rich2k\PusherBeams\Exceptions;
use Exception;
class CouldNotCreateMessage extends Exception
{
/**
* @param string $platform
* @return static
*/
public static function invalidPlatformGiven($platform)
return new static("Platform `{$platform}` is invalid. It should be either `iOS` or `Android`.");
}
* @param $platform
public static function platformConflict($platform)
return new static("You are trying to send an extra message to `{$platform}` while the original message is to `{$platform}`.");