\rex_backend_password_policy

Summary

Methods
Properties
Constants
setFactoryClass()
getFactoryClass()
hasFactoryClass()
__construct()
check()
getDescription()
factory()
getForceRenewAfter()
getBlockAccountAfter()
No public properties found
No constants found
callFactoryClass()
getRule()
isValid()
matchesCount()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

setFactoryClass()

setFactoryClass(string  $subclass) : mixed

Sets the class for the factory.

Parameters

string $subclass

Classname

Throws

\InvalidArgumentException

Returns

mixed —

getFactoryClass()

getFactoryClass() : string

Returns the class for the factory.

Returns

string —

hasFactoryClass()

hasFactoryClass() : bool

Returns if the class has a custom factory class.

Returns

bool —

__construct()

__construct() : mixed

Returns

mixed —

check()

check(mixed  $password, mixed  $id = null) : true|string

Parameters

mixed $password
mixed $id

Returns

true|string —

true on success, otherwise an error message

getDescription()

getDescription() : ?string

Returns

?string —

factory()

factory() : static

Returns

static —

getForceRenewAfter()

getForceRenewAfter() : ?\DateInterval

Returns

?\DateInterval —

getBlockAccountAfter()

getBlockAccountAfter() : ?\DateInterval

Returns

?\DateInterval —

callFactoryClass()

callFactoryClass(string  $method, array  $arguments) : mixed

Calls the factory class with the given method and arguments.

Parameters

string $method

Method name

array $arguments

Array of arguments

Returns

mixed —

Result of the callback

getRule()

getRule() : string

Returns

string —

isValid()

isValid(mixed  $password) : bool

Parameters

mixed $password

Returns

bool —

matchesCount()

matchesCount(int  $count, array  $options) : bool

Parameters

int $count
array $options

Returns

bool —