1 | <?php |
||
21 | abstract class AbstractSerializationVisitor extends AbstractGenericVisitor |
||
22 | { |
||
23 | /** |
||
24 | * @var AccessorInterface |
||
25 | */ |
||
26 | private $accessor; |
||
27 | |||
28 | /** |
||
29 | * @param AccessorInterface $accessor |
||
30 | */ |
||
31 | 1492 | public function __construct(AccessorInterface $accessor) |
|
35 | |||
36 | /** |
||
37 | * {@inheritdoc} |
||
38 | */ |
||
39 | 668 | public function getResult() |
|
43 | |||
44 | /** |
||
45 | * @param mixed $data |
||
46 | * |
||
47 | * @return mixed |
||
48 | */ |
||
49 | abstract protected function encode($data); |
||
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 504 | protected function doVisitObjectProperty( |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 504 | protected function createResult($class) |
|
89 | } |
||
90 |