1 | <?php |
||
8 | class ChainUserManager implements UserManagerInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var UserManagerInterface[] |
||
12 | */ |
||
13 | private $managers; |
||
14 | |||
15 | /** |
||
16 | * @param UserManagerInterface[] $managers |
||
17 | */ |
||
18 | 8 | public function __construct($managers) |
|
22 | |||
23 | /** |
||
24 | * @inheritDoc |
||
25 | */ |
||
26 | 1 | public function supportsClass($class) |
|
36 | |||
37 | /** |
||
38 | * @inheritDoc |
||
39 | */ |
||
40 | 1 | public function supportsUser($user) |
|
50 | |||
51 | /** |
||
52 | * @inheritDoc |
||
53 | */ |
||
54 | 2 | public function get($class, $id) |
|
58 | |||
59 | /** |
||
60 | * @inheritDoc |
||
61 | */ |
||
62 | 2 | public function getClass($user) |
|
66 | |||
67 | /** |
||
68 | * @inheritDoc |
||
69 | */ |
||
70 | 2 | public function getId($user) |
|
74 | |||
75 | /** |
||
76 | * @param string $class |
||
77 | * |
||
78 | * @return UserManagerInterface |
||
79 | */ |
||
80 | 3 | private function getManagerForClass($class) |
|
100 | |||
101 | /** |
||
102 | * @param mixed $user |
||
103 | * |
||
104 | * @return UserManagerInterface |
||
105 | */ |
||
106 | 5 | private function getManagerForUser($user) |
|
126 | } |
||
127 |