1 | <?php |
||
17 | class AbstractSerializer |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * JMS serializer builder |
||
22 | * |
||
23 | * @var SerializerBuilder $builder |
||
24 | */ |
||
25 | protected $builder; |
||
26 | |||
27 | /** |
||
28 | * AbstractSerializer constructor |
||
29 | * |
||
30 | * Builder is initialized with debug and cache setup depending on provided configuration |
||
31 | * and with default listeners and handlers |
||
32 | */ |
||
33 | public function __construct() |
||
48 | |||
49 | /** |
||
50 | * Gets the builder instance |
||
51 | * |
||
52 | * @return SerializerBuilder |
||
53 | */ |
||
54 | public function getBuilderInstance() |
||
58 | |||
59 | /** |
||
60 | * Builds the serializer |
||
61 | * |
||
62 | * @return Serializer |
||
63 | */ |
||
64 | public function make() |
||
68 | |||
69 | } |
||
70 |