1 | <?php |
||
25 | abstract class AbstractAnalyzerBackend extends AbstractBackend implements FreezableBackendInterface, PhpCapableBackendInterface, TaggableBackendInterface |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * Original Backend |
||
30 | * |
||
31 | * @var AbstractBackend |
||
32 | */ |
||
33 | protected $originalBackend; |
||
34 | |||
35 | /** |
||
36 | * Options |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | protected $options; |
||
41 | |||
42 | /** |
||
43 | * Build up the object |
||
44 | * |
||
45 | * @param string $context |
||
46 | * @param array $options |
||
47 | */ |
||
48 | public function __construct($context, array $options = []) |
||
53 | |||
54 | /** |
||
55 | * Set the cache and init the original backend |
||
56 | * |
||
57 | * @param FrontendInterface $cache |
||
58 | * |
||
59 | * @throws InvalidBackendException |
||
60 | */ |
||
61 | public function setCache(FrontendInterface $cache) |
||
75 | |||
76 | /** |
||
77 | * Log one entry |
||
78 | * |
||
79 | * @param string $calledMethod |
||
80 | * @param string $entryIdentifier |
||
81 | * @param string $data |
||
82 | */ |
||
83 | protected function logEntry($calledMethod, $entryIdentifier = '', $data = '') |
||
100 | |||
101 | /** |
||
102 | * Get the database connection |
||
103 | * |
||
104 | * @return DatabaseConnection |
||
105 | */ |
||
106 | protected function getDatabaseConnection() |
||
110 | } |
||
111 |