1 | <?php |
||
10 | class MutexFactory implements MutexFactoryInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var LockAdapterInterface |
||
14 | */ |
||
15 | private $lockAdapter; |
||
16 | |||
17 | /** |
||
18 | * @var StringConverterInterface |
||
19 | */ |
||
20 | private $stringConverter; |
||
21 | |||
22 | /** |
||
23 | * @param LockAdapterInterface $lockAdapter |
||
24 | * @param StringConverterInterface $stringConverter |
||
25 | */ |
||
26 | public function __construct(LockAdapterInterface $lockAdapter, StringConverterInterface $stringConverter) |
||
31 | |||
32 | /** |
||
33 | * @param $subject |
||
34 | * @return MutexInterface |
||
35 | */ |
||
36 | public function createMutex($subject) |
||
40 | } |
||
41 |