[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/web-auth/metadata-service/src/ -> StatusReport.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  class StatusReport
  17  {
  18      /**
  19       * @var string
  20       *
  21       * @see AuthenticatorStatus
  22       */
  23      private $status;
  24  
  25      /**
  26       * @var string|null
  27       */
  28      private $effectiveDate;
  29  
  30      /**
  31       * @var string|null
  32       */
  33      private $certificate;
  34  
  35      /**
  36       * @var string|null
  37       */
  38      private $url;
  39  
  40      /**
  41       * @var string|null
  42       */
  43      private $certificationDescriptor;
  44  
  45      /**
  46       * @var string|null
  47       */
  48      private $certificateNumber;
  49  
  50      /**
  51       * @var string|null
  52       */
  53      private $certificationPolicyVersion;
  54  
  55      /**
  56       * @var string|null
  57       */
  58      private $certificationRequirementsVersion;
  59  
  60      public function getStatus(): string
  61      {
  62          return $this->status;
  63      }
  64  
  65      public function getEffectiveDate(): ?string
  66      {
  67          return $this->effectiveDate;
  68      }
  69  
  70      public function getCertificate(): ?string
  71      {
  72          return $this->certificate;
  73      }
  74  
  75      public function getUrl(): ?string
  76      {
  77          return $this->url;
  78      }
  79  
  80      public function getCertificationDescriptor(): ?string
  81      {
  82          return $this->certificationDescriptor;
  83      }
  84  
  85      public function getCertificateNumber(): ?string
  86      {
  87          return $this->certificateNumber;
  88      }
  89  
  90      public function getCertificationPolicyVersion(): ?string
  91      {
  92          return $this->certificationPolicyVersion;
  93      }
  94  
  95      public function getCertificationRequirementsVersion(): ?string
  96      {
  97          return $this->certificationRequirementsVersion;
  98      }
  99  
 100      public static function createFromArray(array $data): self
 101      {
 102          $object = new self();
 103          $object->status = $data['status'] ?? null;
 104          $object->effectiveDate = $data['effectiveDate'] ?? null;
 105          $object->certificate = $data['certificate'] ?? null;
 106          $object->url = $data['url'] ?? null;
 107          $object->certificationDescriptor = $data['certificationDescriptor'] ?? null;
 108          $object->certificateNumber = $data['certificateNumber'] ?? null;
 109          $object->certificationPolicyVersion = $data['certificationPolicyVersion'] ?? null;
 110          $object->certificationRequirementsVersion = $data['certificationRequirementsVersion'] ?? null;
 111  
 112          return $object;
 113      }
 114  }


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