Debian Codegraph @

lib/3rdParty/composer/web-auth/webauthn-lib/src/PublicKeyCredentialEntity.php

raw symbols SCIP
1 <?php
2
3 declare(strict_types=1);
4
5 namespace Webauthn;
6
7 abstract class PublicKeyCredentialEntity
8 {
9 /**
10 * @deprecated since 5.3.0 and will be removed in 6.0.0. Please set "" and use PublicKeyCredentialUserEntity.name instead.
11 */
12 public string $name;
13
14 /**
15 * @deprecated since 5.1.0 and will be removed in 6.0.0. This value is always null.
16 */
17 public ?string $icon = null;
18
19 public function __construct(string $name, ?string $icon = null)
20 {
21 if ($name !== '') {
22 trigger_deprecation(
23 'web-auth/webauthn-lib',
24 '5.3.0',
25 'The parameter "$name" is deprecated since 5.3.0 and will be removed in 6.0.0. Please set "" and use PublicKeyCredentialUserEntity.name instead.'
26 );
27 }
28 $this->name = $name;
29
30 if ($icon !== null) {
31 trigger_deprecation(
32 'web-auth/webauthn-lib',
33 '5.1.0',
34 'The parameter "$icon" is deprecated since 5.1.0 and will be removed in 6.0.0. This value has no effect. Please set "null" instead.'
35 );
36 }
37 }
38 }