Pionia Core

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|null

roundWith()

protected roundWith(DateInterval|string|float|int $precision, callable|string $function) : static|null
Parameters
$precision : DateInterval|string|float|int
$function : callable|string
Return values
static|null

        
On this page

Search results