for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Skrill\Exception;
use Exception;
use Skrill\ValueObject\SecretWord;
/**
* Class InvalidSecretWordException.
*/
final class InvalidSecretWordException extends Exception implements SkrillException
{
* @return InvalidSecretWordException
public static function emptySecretWord(): self
return new self('Skrill secret word should not be blank.');
}
public static function invalidMinLength(): self
return new self(sprintf('The length of Skrill Secret Word is too short. It should have %d characters or more.', SecretWord::MIN_LENGTH));
public static function missingLetters(): self
return new self('Skrill Secret Word must include at least one letter.');
public static function missingNonAlphabetic(): self
return new self('Skrill Secret Word must include at least one non-alphabetic character.');