IntervalRounding
Trait to call rounding methods to interval or the interval of a period.
Table of Contents
Methods
- callRoundMethod() : static|null
- roundWith() : static|null
Methods
callRoundMethod()
protected
callRoundMethod(string $method, array<string|int, mixed> $parameters) : static|null
Parameters
- $method : string
- $parameters : array<string|int, mixed>
Return values
static|nullroundWith()
protected
roundWith(DateInterval|string|float|int $precision, callable|string $function) : static|null
Parameters
- $precision : DateInterval|string|float|int
- $function : callable|string