IsCurrency
extends Base
in package
Requires a number with a maximum of 2 decimal places.
Table of Contents
Methods
- __construct() : mixed
- isValid() : bool
- Returns true if validation is successful
- validate() : bool
- Validates if the value is in a currency format.
Methods
__construct()
public
__construct() : mixed
isValid()
Returns true if validation is successful
public
isValid(mixed $value) : bool
Parameters
- $value : mixed
Return values
boolvalidate()
Validates if the value is in a currency format.
public
validate(mixed $value) : bool
Parameters
- $value : mixed