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