\MocaBonita\tools\validationMbFileValidation

File validation class

Summary

Methods
Properties
Constants
getAttribute()
setAttribute()
validate()
getInstance()
__clone()
__wakeup()
No public properties found
No constants found
__construct()
init()
$attribute
$instances
N/A
No private methods found
No private properties found
N/A

Properties

$attribute

$attribute : string

Stored current attribute

Type

string

Methods

getAttribute()

getAttribute() : string

Get attribute

Returns

string

validate()

validate(mixed  $value, array  $arguments = array()) : \SplFileInfo|array<mixed,\SplFileInfo>

Implement validation

Parameters

mixed $value
array $arguments

Throws

\Exception

Returns

\SplFileInfo|array<mixed,\SplFileInfo> —

$value

getInstance()

getInstance() : static

The singleton pattern is useful when we need to make sure that we only have a single instance of a class for the entire request lifecycle in a Web application. This usually occurs when we have global objects (such as a configuration class) or a resource (Such as an event queue).

Returns

static

__clone()

__clone() 

Clone Not allowed

Throws

\MocaBonita\tools\MbException

__wakeup()

__wakeup() 

WakeUp Not allowed.

Throws

\MocaBonita\tools\MbException

__construct()

__construct() 

Singleton construct

init()

init() 

Method to be started