[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/web-auth/metadata-service/src/ -> VerificationMethodANDCombinations.php (source)

   1  <?php
   2  
   3  declare(strict_types=1);
   4  
   5  /*
   6   * The MIT License (MIT)
   7   *
   8   * Copyright (c) 2014-2019 Spomky-Labs
   9   *
  10   * This software may be modified and distributed under the terms
  11   * of the MIT license.  See the LICENSE file for details.
  12   */
  13  
  14  namespace Webauthn\MetadataService;
  15  
  16  use Assert\Assertion;
  17  
  18  class VerificationMethodANDCombinations
  19  {
  20      /**
  21       * @var VerificationMethodDescriptor[]
  22       */
  23      private $verificationMethods = [];
  24  
  25      /**
  26       * @return VerificationMethodDescriptor[]
  27       */
  28      public function getVerificationMethods(): array
  29      {
  30          return $this->verificationMethods;
  31      }
  32  
  33      public static function createFromArray(array $data): self
  34      {
  35          $object = new self();
  36  
  37          foreach ($data as $datum) {
  38              Assertion::isArray($datum, 'Invalid verificationMethod and combinations');
  39              $object->verificationMethods[] = VerificationMethodDescriptor::createFromArray($datum);
  40          }
  41  
  42          return $object;
  43      }
  44  }


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer