Validator
Class Validator
Table of Contents
Methods
- validate() : string
- Validate.
- validateEmail() : string
- Validate email.
- validateOpenLine() : bool
- Validate OpenLine code.
- validatePhone() : bool
- Validate phone number.
Methods
validate()
Validate.
public
static validate(string $code, int $typeId) : string
Parameters
- $code : string
-
Code.
- $typeId : int
-
Type ID.
Return values
stringvalidateEmail()
Validate email.
public
static validateEmail(string $email) : string
Parameters
- $email : string
-
Email.
Return values
stringvalidateOpenLine()
Validate OpenLine code.
public
static validateOpenLine(string $code) : bool
Parameters
- $code : string
-
Code.
Return values
boolvalidatePhone()
Validate phone number.
public
static validatePhone(string $phone) : bool
Parameters
- $phone : string
-
Phone number.