for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Brazanation\Documents\Exception;
class InvalidDocument extends \InvalidArgumentException
{
public static function notEmpty($type)
return new static("The {$type} must not be empty");
}
public static function isNotValid($type, $number)
return new static("The {$type}({$number}) is not valid number");