ValidateCommand
extends Command
in package
uses
TracksExecutionTime
Run a series of tests to validate your setup and help you optimize your site.
Table of Contents
Properties
- $description : string
- $help : string
- $service : ValidationService
- $signature : string
- $timeStart : float
Methods
- __construct() : mixed
- handle() : int
- getCheckTime() : string
- getExecutionTimeInMs() : int|float
- getExecutionTimeString() : string
- runCheck() : void
- startClock() : void
- stopClock() : float
- timeTotal() : string
Properties
$description
protected
string
$description
= 'Test and validate your project to optimize your site'
$help
protected
string
$help
= 'Run a series of tests to validate your setup and help you optimize your site'
$service
protected
ValidationService
$service
$signature
protected
string
$signature
= 'validate'
$timeStart
protected
float
$timeStart
Methods
__construct()
public
__construct() : mixed
handle()
public
handle() : int
Return values
intgetCheckTime()
protected
getCheckTime(float $timeStart) : string
Parameters
- $timeStart : float
Return values
stringgetExecutionTimeInMs()
protected
getExecutionTimeInMs() : int|float
Return values
int|floatgetExecutionTimeString()
protected
getExecutionTimeString() : string
Return values
stringrunCheck()
protected
runCheck(string $check) : void
Parameters
- $check : string
startClock()
protected
startClock() : void
stopClock()
protected
stopClock() : float
Return values
floattimeTotal()
protected
timeTotal() : string