JsonResultFormatter
in package
Class JsonResultFormatter
Table of Contents
- $results : array<string|int, mixed>
- The results to format.
- __construct() : mixed
- JsonResultFormatter constructor.
- format() : array<string|int, mixed>
- Format the results.
- is_success() : bool
- Check if all results are successful.
Properties
$results
The results to format.
private
array<string|int, mixed>
$results
Methods
__construct()
JsonResultFormatter constructor.
public
__construct(array<string|int, mixed> $results) : mixed
Parameters
- $results : array<string|int, mixed>
-
The results to format.
Return values
mixed —format()
Format the results.
public
format([string $message_type = 'all' ]) : array<string|int, mixed>
Parameters
- $message_type : string = 'all'
-
The message type to format.
Return values
array<string|int, mixed> —is_success()
Check if all results are successful.
public
is_success() : bool