MetaFox

ResourceNameRule
in package
implements Rule

Class ResourceNameRule.

Table of Contents

Interfaces

Rule

Properties

$maxLength  : int
$minLength  : int

Methods

__construct()  : mixed
message()  : string
Get the validation error message.
passes()  : bool
Determine if the validation rule passes.

Properties

$maxLength

private int $maxLength = \MetaFox\Platform\MetaFoxConstant::DEFAULT_MAX_TITLE_LENGTH

$minLength

private int $minLength = \MetaFox\Platform\MetaFoxConstant::DEFAULT_MIN_TITLE_LENGTH

Methods

__construct()

public __construct(string|null $package) : mixed
Parameters
$package : string|null

message()

Get the validation error message.

public message() : string
Return values
string

passes()

Determine if the validation rule passes.

public passes(string $attribute, mixed $value) : bool
Parameters
$attribute : string
$value : mixed
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
bool

        
On this page

Search results