1
0
Fork 0
mirror of synced 2024-09-19 02:48:02 +12:00

remove validator

This commit is contained in:
Damodar Lohani 2024-09-04 07:45:51 +00:00
parent bad70b8257
commit fdc69e77f4

View file

@ -1,70 +0,0 @@
<?php
namespace Appwrite\Auth\Validator;
use Utopia\Validator;
class Role extends Validator
{
/**
* @var string
*/
protected string $message = '';
/**
* Get Description.
*
* Returns validator description
*
* @return string
*/
public function getDescription(): string
{
return $this->message;
}
/**
* Expression constructor
*/
public function __construct()
{
}
/**
* Is valid.
*
* Returns true if valid or false if not.
*
* @param $value
*
* @return bool
*/
public function isValid($value): bool
{
return true;
}
/**
* Is array
*
* Function will return true if object is array.
*
* @return bool
*/
public function isArray(): bool
{
return false;
}
/**
* Get Type
*
* Returns validator type.
*
* @return string
*/
public function getType(): string
{
return self::TYPE_STRING;
}
}