Skip to content

Commit

Permalink
feat: added Hash::class facade
Browse files Browse the repository at this point in the history
  • Loading branch information
SonyPradana committed Sep 7, 2024
1 parent 503d724 commit e7943a9
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/System/Support/Facades/Hash.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

declare(strict_types=1);

namespace System\Support\Facades;

use System\Security\Hashing\HashManager;

/**
* @method static self setDefaultDriver(\System\Security\Hashing\HashInterface $driver)
* @method static self setDriver(string $driver_name, \System\Security\Hashing\HashInterface $driver)
* @method static \System\Security\Hashing\HashInterface driver(?string $driver = null)
* @method static array info(string $hashed_value)
* @method static string make(string $value, array $options = [])
* @method static bool verify(string $value, string $hashed_value, array $options = [])
* @method static bool isValidAlgorithm(string $hash)
*/
final class Hash extends Facade
{
protected static function getAccessor()
{
return HashManager::class;
}
}

0 comments on commit e7943a9

Please sign in to comment.