DateValueAggregator
extends Component
in package
FinalYes
Tags
Table of Contents
Properties
- $date_values : array<string|int, mixed>
- $dates : array<string|int, mixed>
- $first_date : DateTime
- $hashCode : int
- $hashCounter : int
- $interval : string
- $last_date : DateTime
- $mode : string
- $modes : array<string|int, mixed>
- $round_precision : int
Methods
- __call() : mixed
- __callStatic() : mixed
- __construct() : mixed
- __destruct() : mixed
- __get() : mixed
- add() : void
- extends() : bool
- getDatePeriodStartDate() : string
- getDates() : array<string|int, mixed>
- getFirstDate() : DateTime
- getLastDate() : DateTime
- getNextDate() : string
- getReflection() : ReflectionClass
- getValues() : array<string|int, mixed>
- init() : mixed
Properties
$date_values
private
array<string|int, mixed>
$date_values
= []
$dates
private
array<string|int, mixed>
$dates
= []
$first_date
private
DateTime
$first_date
$hashCode
private
int
$hashCode
$hashCounter
private
static int
$hashCounter
= 0
$interval
private
string
$interval
$last_date
private
DateTime
$last_date
$mode
private
string
$mode
$modes
private
static array<string|int, mixed>
$modes
= array('sum', 'average')
$round_precision
private
int
$round_precision
Methods
__call()
public
__call(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
Tags
__callStatic()
public
static __callStatic(mixed $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : mixed
- $arguments : array<string|int, mixed>
__construct()
public
__construct(DateTime $from, DateTime $to[, string $interval = INTERVAL_DAY ][, string $mode = 'sum' ][, number $round_precision = 2 ]) : mixed
Parameters
- $from : DateTime
- $to : DateTime
- $interval : string = INTERVAL_DAY
- $mode : string = 'sum'
- $round_precision : number = 2
Tags
__destruct()
public
__destruct() : mixed
__get()
public
__get(string $property) : mixed
Parameters
- $property : string
add()
public
add(string $date, float $value) : void
Parameters
- $date : string
- $value : float
extends()
public
extends(ReflectionClass $reflector) : bool
Parameters
- $reflector : ReflectionClass
Return values
boolgetDatePeriodStartDate()
public
getDatePeriodStartDate(string $date) : string
Parameters
- $date : string
Tags
Return values
stringgetDates()
public
getDates() : array<string|int, mixed>
Return values
array<string|int, mixed>getFirstDate()
public
getFirstDate() : DateTime
Return values
DateTimegetLastDate()
public
getLastDate() : DateTime
Return values
DateTimegetNextDate()
public
getNextDate(string $date) : string
Parameters
- $date : string
Tags
Return values
stringgetReflection()
public
getReflection() : ReflectionClass
Return values
ReflectionClassgetValues()
public
getValues() : array<string|int, mixed>
Return values
array<string|int, mixed>init()
protected
init() : mixed