for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NotificationChannels\Cmsms\Exceptions;
use Exception;
class InvalidMessage extends Exception
{
/**
* @param string $reference
* @return static
*/
public static function invalidReference($reference)
return new static("The reference on the CMSMS message may only contain 1 - 32 alphanumeric characters. Was given '{$reference}'");
}
* @param string $originator
public static function invalidOriginator($originator)
return new static("The originator on the CMSMS message may only contain 1 - 11 characters. Was given '{$originator}'");
* @param int $tariff
public static function invalidTariff($tariff)
return new static("The tarrif on the CMSMS message may only contain a nonzero integer. Was given '{$tariff}'");