| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Webauthn\TrustPath; |
| 6 | |
| 7 | final readonly class CertificateTrustPath implements TrustPath |
| 8 | { |
| 9 | /** |
| 10 | * @param string[] $certificates |
| 11 | */ |
| 12 | public function __construct( |
| 13 | public array $certificates |
| 14 | ) { |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * @param string[] $certificates |
| 19 | */ |
| 20 | public static function create(array $certificates): self |
| 21 | { |
| 22 | return new self($certificates); |
| 23 | } |
| 24 | } |