CategoryRule
in package
implements
Rule
Class CategoryRule.
Table of Contents
Interfaces
- Rule
Properties
Methods
- __construct() : mixed
- message() : string
- Get the validation error message.
- passes() : bool
- Determine if the validation rule passes.
Properties
$isActive
protected
bool
$isActive
= false
$repository
protected
CategoryRepositoryInterface
$repository
Methods
__construct()
public
__construct(CategoryRepositoryInterface $repository) : mixed
Parameters
- $repository : CategoryRepositoryInterface
message()
Get the validation error message.
public
message() : string
Return values
stringpasses()
Determine if the validation rule passes.
public
passes(string $attribute, mixed $value) : bool
Parameters
- $attribute : string
- $value : mixed