1 | <?php |
||
12 | class SerializerIgbinary implements iSerializer |
||
13 | { |
||
14 | |||
15 | /** |
||
16 | * @var bool |
||
17 | */ |
||
18 | public static $_exists_igbinary; |
||
19 | |||
20 | /** |
||
21 | * SerializerIgbinary constructor. |
||
22 | */ |
||
23 | 11 | public function __construct() |
|
24 | { |
||
25 | self::$_exists_igbinary = ( |
||
26 | 11 | \function_exists('igbinary_serialize') |
|
27 | && |
||
28 | 11 | \function_exists('igbinary_unserialize') |
|
29 | ); |
||
30 | 11 | } |
|
31 | |||
32 | /** |
||
33 | * @inheritdoc |
||
34 | */ |
||
35 | 6 | public function serialize($value) |
|
45 | |||
46 | /** |
||
47 | * @inheritdoc |
||
48 | */ |
||
49 | 7 | public function unserialize($value) |
|
59 | |||
60 | } |
||
61 |