1 | <?php |
||
17 | abstract class AbstractAdapter implements AdapterInterface |
||
18 | { |
||
19 | /** |
||
20 | * Identity |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $identifier; |
||
25 | |||
26 | |||
27 | /** |
||
28 | * attribute sync cache |
||
29 | * |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $attr_sync_cache = 0; |
||
33 | |||
34 | |||
35 | /** |
||
36 | * attribute map |
||
37 | * |
||
38 | * @var Iterable |
||
39 | */ |
||
40 | protected $map = []; |
||
41 | |||
42 | |||
43 | /** |
||
44 | * Logger |
||
45 | * |
||
46 | * @var Logger |
||
47 | */ |
||
48 | protected $logger; |
||
49 | |||
50 | |||
51 | /** |
||
52 | * Get attribute sync cache |
||
53 | * |
||
54 | * @return int |
||
55 | */ |
||
56 | public function getAttributeSyncCache(): int |
||
60 | |||
61 | |||
62 | /** |
||
63 | * Set options |
||
64 | * |
||
65 | * @param Iterable $config |
||
66 | * @return AdapterInterface |
||
67 | */ |
||
68 | public function setOptions(? Iterable $config = null) : AdapterInterface |
||
88 | |||
89 | |||
90 | /** |
||
91 | * Get identifier |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getIdentifier(): string |
||
99 | |||
100 | |||
101 | /** |
||
102 | * Get attribute map |
||
103 | * |
||
104 | * @return Iterable |
||
105 | */ |
||
106 | public function getAttributeMap(): Iterable |
||
110 | } |
||
111 |