1 | <?php |
||
22 | class SQLDriver extends DB implements \Aviat\Ion\Cache\CacheDriverInterface { |
||
23 | |||
24 | /** |
||
25 | * The query builder object |
||
26 | * @var object $db |
||
27 | */ |
||
28 | protected $db; |
||
29 | |||
30 | /** |
||
31 | * Create the driver object |
||
32 | */ |
||
33 | public function __construct(ContainerInterface $container) |
||
38 | |||
39 | /** |
||
40 | * Retreive a value from the cache backend |
||
41 | * |
||
42 | * @param string $key |
||
43 | * @return mixed |
||
44 | */ |
||
45 | public function get($key) |
||
60 | |||
61 | /** |
||
62 | * Set a cached value |
||
63 | * |
||
64 | * @param string $key |
||
65 | * @param mixed $value |
||
66 | * @return CacheDriverInterface |
||
|
|||
67 | */ |
||
68 | public function set($key, $value) |
||
79 | |||
80 | /** |
||
81 | * Invalidate a cached value |
||
82 | * |
||
83 | * @param string $key |
||
84 | * @return CacheDriverInterface |
||
85 | */ |
||
86 | public function invalidate($key) |
||
93 | |||
94 | /** |
||
95 | * Clear the contents of the cache |
||
96 | * |
||
97 | * @return void |
||
98 | */ |
||
99 | public function invalidateAll() |
||
103 | } |
||
104 | // End of SQLDriver.php |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.