\TxTextControl\ReportingCloud\AssertAssertTimestampTrait

Trait AssertTimestampTrait

Summary

Methods
Properties
Constants
assertTimestamp()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$timestampMin
$timestampMax
N/A

Properties

$timestampMin

$timestampMin : int

Minimum timestamp (EPOC)

Type

int

$timestampMax

$timestampMax : int

Maximum timestamp (PHP_INT_MAX)

Type

int

Methods

assertTimestamp()

assertTimestamp(int  $value, string  $message = '') : void

Check value is a valid timestamp

Parameters

int $value
string $message

Throws

\TxTextControl\ReportingCloud\Exception\InvalidArgumentException