1: <?php
2:
3: namespace PHPixie\Security\Tokens\Storage\Database;
4:
5: class Mongo extends \PHPixie\Security\Tokens\Storage\Database
6: {
7: protected $collection;
8:
9: public function __construct($tokens, $connection, $configData)
10: {
11: parent::__construct($tokens, $connection);
12: $this->collection = $configData->getRequired('collection');
13: }
14:
15: protected function setSource($query)
16: {
17: $query->collection($this->collection);
18: }
19: }