1 | <?php |
||
7 | class EntitySerializer implements Contract |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $type; |
||
13 | |||
14 | /** |
||
15 | * @var \Closure |
||
16 | */ |
||
17 | protected $serializeClosure; |
||
18 | |||
19 | /** |
||
20 | * @var \Closure |
||
21 | */ |
||
22 | protected $unserializeClosure; |
||
23 | |||
24 | /** |
||
25 | * EntitySerializer constructor. |
||
26 | * @param string $type |
||
27 | * @param \Closure $serializeClosure |
||
28 | * @param \Closure $unserializeClosure |
||
29 | */ |
||
30 | public function __construct($type, \Closure $serializeClosure, \Closure $unserializeClosure) |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getType() |
||
44 | |||
45 | /** |
||
46 | * @param $object |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function serialize($object) |
||
53 | |||
54 | /** |
||
55 | * @param array $data |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function unserialize($data) |
||
62 | } |
||
63 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.