CheckToTimeFilter
extends CheckAbstract
in package
Check for toTime filter This is a error level
Table of Contents
- $fileName : mixed
- Template filename
- $messages : mixed
- Message container
- $template : mixed
- Template context
- execute() : bool
- Execute check, must return a boolean and set a message on failure
- getMessages() : array<string|int, mixed>
- Return messages, if it exists
- loadTemplate() : self
- Handle the loading of the template
- setFileName() : self
- Set template filename
- asArray() : array<string|int, mixed>
- Return template as an array of lines
- asString() : string
- Return template as a string
- getFileName() : string
- Return filename
- setMessage() : mixed
Properties
$fileName
Template filename
protected
mixed
$fileName
$messages
Message container
protected
mixed
$messages
= []
$template
Template context
protected
mixed
$template
Methods
execute()
Execute check, must return a boolean and set a message on failure
public
execute() : bool
Return values
bool —TRUE for success, FALSE for failure
getMessages()
Return messages, if it exists
public
getMessages() : array<string|int, mixed>
Return values
array<string|int, mixed> —of Ceo\Lint\Twig\Message or NULL
loadTemplate()
Handle the loading of the template
public
loadTemplate(string $template) : self
Parameters
- $template : string
Return values
self —setFileName()
Set template filename
public
setFileName(string $name) : self
Parameters
- $name : string
Return values
self —asArray()
Return template as an array of lines
protected
asArray() : array<string|int, mixed>
Return values
array<string|int, mixed> —asString()
Return template as a string
protected
asString() : string
Return values
string —getFileName()
Return filename
protected
getFileName() : string
Return values
string —setMessage()
protected
setMessage(mixed $type, mixed $message) : mixed
Parameters
- $type : mixed
- $message : mixed