1 | <?php namespace AdammBalogh\KeyValueStore\Adapter; |
||
3 | class Util |
||
4 | { |
||
5 | /** |
||
6 | * @param string $value |
||
7 | * @param int $seconds |
||
8 | * @param int $timestamp |
||
9 | * |
||
10 | * @return string |
||
11 | */ |
||
12 | public static function getDataWithExpire($value, $seconds, $timestamp) |
||
20 | |||
21 | /** |
||
22 | * @param mixed $unserializedValue |
||
23 | * |
||
24 | * @return bool |
||
25 | */ |
||
26 | public static function hasInternalExpireTime($unserializedValue) |
||
35 | |||
36 | /** |
||
37 | * @param string $param |
||
38 | * |
||
39 | * @throws \Exception |
||
40 | */ |
||
41 | public static function checkInteger($param) |
||
47 | |||
48 | /** |
||
49 | * @param mixed $argument |
||
50 | * |
||
51 | * @throws \InvalidArgumentException |
||
52 | */ |
||
53 | public static function checkArgString($argument) |
||
59 | |||
60 | /** |
||
61 | * @param mixed $argument |
||
62 | * |
||
63 | * @throws \InvalidArgumentException |
||
64 | */ |
||
65 | public static function checkArgInteger($argument) |
||
71 | |||
72 | /** |
||
73 | * @param mixed $argument |
||
74 | * |
||
75 | * @throws \InvalidArgumentException |
||
76 | */ |
||
77 | public static function checkArgSerializable($argument) |
||
83 | } |
||
84 |