| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | trait AssertTimestampTrait |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * Minimum timestamp (EPOC) |
||
| 27 | * |
||
| 28 | * @var int |
||
| 29 | */ |
||
| 30 | private static $timestampMin = 0; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Maximum timestamp |
||
| 34 | * |
||
| 35 | * @var int |
||
| 36 | */ |
||
| 37 | private static $timestampMax = PHP_INT_MAX; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Validate timestamp |
||
| 41 | * |
||
| 42 | * @param int $value |
||
| 43 | * @param string $message |
||
| 44 | * |
||
| 45 | * @return null |
||
| 46 | * @throws \TxTextControl\ReportingCloud\Exception\InvalidArgumentException |
||
| 47 | */ |
||
| 48 | 39 | public static function assertTimestamp(int $value, string $message = '') |
|
| 61 |