for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.9.5
*/
namespace Quantum\Libraries\Hasher\Exceptions;
use Quantum\Exceptions\BaseException;
* Class HasherException
* @package Quantum\Libraries\Hasher
class HasherException extends BaseException
{
* @param string $algorithm
* @return self
public static function algorithmNotSupported(string $algorithm): self
return new static(t('exception.not_supported_algorithm', $algorithm), E_WARNING);
}
public static function invalidBcryptCost(): self
return new static(t('exception.invalid_bcrypt_cost'), E_WARNING);