32 lines
497 B
PHP
32 lines
497 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Webauthn\TrustPath;
|
|
|
|
final class EmptyTrustPath implements TrustPath
|
|
{
|
|
public static function create(): self
|
|
{
|
|
return new self();
|
|
}
|
|
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
public function jsonSerialize(): array
|
|
{
|
|
return [
|
|
'type' => self::class,
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function createFromArray(array $data): static
|
|
{
|
|
return new self();
|
|
}
|
|
}
|