Overview

Namespaces

  • Rundiz
    • Serializer

Classes

  • Rundiz\Serializer\Serializer
  • Rundiz\Serializer\SerializerStatic
  • Overview
  • Namespace
  • Class
 1: <?php
 2: /**
 3:  * Serializer class for use in static method.
 4:  * 
 5:  * @license http://opensource.org/licenses/MIT MIT
 6:  */
 7: 
 8: 
 9: namespace Rundiz\Serializer;
10: 
11: 
12: /**
13:  * Works with serialize.
14:  * 
15:  * @method boolean isSerialized(string $string) Check if string is serialized
16:  * @method string maybeSerialize(mixed $value) Check first that data is serialized or not, if not then serialize it otherwise return as is.
17:  * @method string maybeUnserialize(mixed $value) Check first that data is serialized or not, if yes then unserialize it otherwise return as is.
18:  */
19: class SerializerStatic
20: {
21: 
22: 
23:     public static function __callStatic($name, $arguments)
24:     {
25:         $Serializer = new \Rundiz\Serializer\Serializer();
26:         return call_user_func_array([$Serializer, $name], $arguments);
27:     }// __callStatic
28: 
29: 
30: }
API documentation generated by ApiGen