| Conditions | 2 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2.0054 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 13 | public static function assertTimestamp(int $value, string $message = '') |
|
| 49 | { |
||
| 50 | 13 | $format = 'Timestamp (%s) must be in the range [%2$s..%3$s]'; |
|
| 51 | 13 | $message = sprintf( |
|
| 52 | $message ?: |
||
| 53 | 13 | $format, |
|
| 54 | 13 | self::valueToString($value), |
|
| 55 | 13 | self::valueToString(self::$timestampMin), |
|
| 56 | 13 | self::valueToString(self::$timestampMax) |
|
| 57 | ); |
||
| 58 | |||
| 59 | 13 | return self::range($value, self::$timestampMin, self::$timestampMax, $message); |
|
| 60 | } |
||
| 62 |