\Ezypay\Validation\ValidatorNotEmptyString

Class NotEmptyString

Validate empty string

Summary

Methods
Properties
Constants
__construct()
validate()
getFormattedError()
No public properties found
No constants found
No protected methods found
$string
$errorContainer
$errorMessage
N/A
No private methods found
No private properties found
N/A

Properties

$string

$string : string

Type

string — string The string for validation

$errorContainer

$errorContainer : 

Type

— string The container for error message

$errorMessage

$errorMessage : 

Type

— string The error message

Methods

__construct()

__construct(  $string,   $errorMessage) 

NotEmptyString constructor.

Parameters

$string

string

$errorMessage

string

validate()

validate() : boolean

Check is provided data valid

Returns

boolean

getFormattedError()

getFormattedError() : string

Retrun error string or null

Returns

string —

| null