1 | <?php |
||
10 | class SerializerIgbinary implements iSerializer |
||
11 | { |
||
12 | /** |
||
13 | * @var bool |
||
14 | */ |
||
15 | public static $_exists_igbinary; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $unserialize_options = []; |
||
21 | |||
22 | /** |
||
23 | * SerializerIgbinary constructor. |
||
24 | */ |
||
25 | 69 | public function __construct() |
|
26 | { |
||
27 | 69 | if (self::$_exists_igbinary === null) { |
|
28 | self::$_exists_igbinary = ( |
||
29 | 1 | \function_exists('igbinary_serialize') |
|
30 | && |
||
31 | 1 | \function_exists('igbinary_unserialize') |
|
32 | ); |
||
33 | } |
||
34 | 69 | } |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 33 | public function serialize($value) |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 26 | public function unserialize($value) |
|
65 | |||
66 | /** |
||
67 | * @param array $options |
||
68 | */ |
||
69 | 47 | public function setUnserializeOptions(array $options) |
|
73 | } |
||
74 |