Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | final class SignerProvider implements SignerProviderInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var array<SignerInterface> |
||
23 | */ |
||
24 | private array $signers = []; |
||
25 | |||
26 | 16 | public function __construct( |
|
27 | private readonly SignerFactoryInterface $signerFactory, |
||
28 | private readonly SignerConfigProvider $configs |
||
29 | ) { |
||
30 | 16 | } |
|
31 | |||
32 | /** |
||
33 | * @param string $gateway |
||
34 | * @return SignerInterface |
||
35 | */ |
||
36 | 15 | public function get(string|null $gateway = null): SignerInterface |
|
49 | } |
||
50 | } |
||
51 |