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