mirror of
https://github.com/appwrite/appwrite
synced 2026-05-08 09:41:32 +00:00
41 lines
832 B
PHP
41 lines
832 B
PHP
<?php
|
|
|
|
namespace Appwrite\Utopia\Response\Model;
|
|
|
|
use Appwrite\Utopia\Response;
|
|
use Appwrite\Utopia\Response\Model;
|
|
|
|
class AlgoBcrypt extends Model
|
|
{
|
|
public function __construct()
|
|
{
|
|
// No options, because this can only be imported, and verifying doesnt require any configuration
|
|
$this
|
|
->addRule('type', [
|
|
'type' => self::TYPE_STRING,
|
|
'description' => 'Algo type.',
|
|
'default' => 'bcrypt',
|
|
'example' => 'bcrypt',
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Get Name
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getName(): string
|
|
{
|
|
return 'AlgoBcrypt';
|
|
}
|
|
|
|
/**
|
|
* Get Type
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getType(): string
|
|
{
|
|
return Response::MODEL_ALGO_BCRYPT;
|
|
}
|
|
}
|