/** * Constructor * * @param string $name The hash to wrap * @param Md5WeakHasher $hasher A hasher */ public function __construct($hash, Md5WeakHasher $hasher) { parent::__construct($hash, $hasher, '/^[\\da-zA-Z]{32}$/'); }
/** * Constructor * * @param string $name The hash to wrap * @param Sha1WeakHasher $hasher A hasher */ public function __construct($hash, Sha1WeakHasher $hasher) { parent::__construct($hash, $hasher, '/^[\\da-zA-Z]{40}$/'); }