for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gemz\Port\Exceptions;
class InvalidArgument extends \InvalidArgumentException
{
public static function domainIsNotValid(string $domain): self
return new self("The given domain `{$domain}` is not valid");
}
public static function portOrProtocolIsNotValid(string $port, string $protocol): self
return new self("The given port `{$port}` or protocol `{$protocol}` is not valid");