1 | <?php |
||
17 | class DoctrineORMTokenRepository implements TokenRepositoryInterface |
||
18 | { |
||
19 | /** |
||
20 | * @var EntityManager |
||
21 | */ |
||
22 | private $manager; |
||
23 | |||
24 | /** |
||
25 | * @var EntityRepository |
||
26 | */ |
||
27 | private $repository; |
||
28 | |||
29 | /** |
||
30 | * @param EntityManager $manager The token entity manager |
||
31 | * @param EntityRepository $repository The token entity repository |
||
32 | */ |
||
33 | 7 | public function __construct(EntityManager $manager, EntityRepository $repository) |
|
38 | |||
39 | /** |
||
40 | * @inheritdoc |
||
41 | */ |
||
42 | 5 | public function get($value, $purpose) |
|
63 | |||
64 | /** |
||
65 | * @inheritDoc |
||
66 | */ |
||
67 | public function findExisting($userClass, $userId, $purpose) |
||
85 | |||
86 | /** |
||
87 | * @inheritdoc |
||
88 | */ |
||
89 | 1 | public function create(Token $token) |
|
94 | |||
95 | /** |
||
96 | * @inheritdoc |
||
97 | */ |
||
98 | 1 | public function update(Token $token) |
|
103 | |||
104 | /** |
||
105 | * @inheritdoc |
||
106 | */ |
||
107 | public function exists($value, $purpose) |
||
124 | } |
||
125 |