MetaFox

ChartData extends JsonResource
in package

Class ChartData.

Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Table of Contents

Properties

$resource  : Collection
$data  : array<string, mixed>
$period  : string

Methods

getPeriod()  : string
setPeriod()  : ChartData
toArray()  : array<int, mixed>
Transform the resource collection into an array.
normalizePointData()  : array<string|int, string>
fillData()  : void
initDefaultData()  : void

Properties

Methods

getPeriod()

public getPeriod() : string
Return values
string

toArray()

Transform the resource collection into an array.

public toArray(Request $request) : array<int, mixed>
Parameters
$request : Request
Return values
array<int, mixed>

normalizePointData()

protected normalizePointData(StatsContent $resource) : array<string|int, string>
Parameters
$resource : StatsContent
Return values
array<string|int, string>

initDefaultData()

private initDefaultData(string $period) : void
Parameters
$period : string

        
On this page

Search results