| 1 | <?php |
||
| 10 | class MongoDBStorageAdapter implements StorageInterface |
||
| 11 | { |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var object |
||
| 15 | */ |
||
| 16 | private $mongo; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $collection; |
||
| 22 | |||
| 23 | public function __construct($mongo, $collection = "rollout_feature") |
||
| 32 | /** |
||
| 33 | * @inheritdoc |
||
| 34 | */ |
||
| 35 | public function get($key) |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | */ |
||
| 50 | public function set($key, $value) |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @inheritdoc |
||
| 58 | */ |
||
| 59 | public function remove($key) |
||
| 64 | |||
| 65 | } |
||
| 66 |