1 | <?php |
||
25 | class ObjectSerializerPersister extends ObjectPersister |
||
26 | { |
||
27 | protected $serializer; |
||
28 | |||
29 | /** |
||
30 | * @param Type $type |
||
31 | * @param ModelToElasticaTransformerInterface $transformer |
||
32 | * @param string $objectClass |
||
33 | * @param callable $serializer |
||
34 | */ |
||
35 | public function __construct(Type $type, ModelToElasticaTransformerInterface $transformer, $objectClass, $serializer) |
||
41 | |||
42 | /** |
||
43 | * Transforms an object to an elastica document |
||
44 | * with just the identifier set. |
||
45 | * |
||
46 | * @param object $object |
||
47 | * |
||
48 | * @return Document the elastica document |
||
49 | */ |
||
50 | public function transformToElasticaDocument($object) |
||
59 | } |
||
60 |