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\Password;
/**
* Class InvalidPasswordException.
*/
final class InvalidPasswordException extends Exception implements SkrillException
{
* @return InvalidPasswordException
public static function invalidMinLength(): self
return new self(
sprintf('Skrill API/MQI password is too short. It should have %d characters or more.', Password::MIN_LENGTH)
);
}
public static function missingLetters(): self
return new self('Skrill API/MQI password must include at least one letter.');
public static function missingNumbers(): self
return new self('Skrill API/MQI password must include at least one number.');