for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AardsGerds\Game\Shared;
final class IntegerValueException extends \RuntimeException
{
public static function invalidValue(int $value): self
return new self("{$value} is not a valid value");
}
public static function onlyPositive(): self
return new self('Only positive integers are accepted');