\TriTanValidators

Validators

Summary

Methods
Properties
Constants
validateUsername()
validateEmail()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

validateUsername()

validateUsername(string  $username) : boolean|\TriTan\Exception

Validates username.

Parameters

string $username

Whether given username is valid.

Returns

boolean|\TriTan\Exception —

Returns true if username is valid, false and exception if username is not valid.

validateEmail()

validateEmail(string  $email) : boolean|\TriTan\Exception

Validates email.

Parameters

string $email

Whether given email is valid.

Returns

boolean|\TriTan\Exception —

Returns true if email is valid, false and exception if email is not valid.