| 1 | <?php |
||
| 9 | class Authenticator implements AuthenticatorInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var MechanismInterface[] |
||
| 13 | */ |
||
| 14 | private $mechanisms = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param MechanismInterface[] $mechanisms |
||
| 18 | */ |
||
| 19 | public function __construct(array $mechanisms) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @return Authenticator |
||
| 28 | */ |
||
| 29 | 18 | public static function build() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param array $mechanisms |
||
| 39 | * |
||
| 40 | * @return MechanismInterface |
||
| 41 | * |
||
| 42 | * @throws \Exception |
||
| 43 | */ |
||
| 44 | 20 | public function get(array $mechanisms) |
|
| 57 | } |
||
| 58 |