[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/fgrosse/phpasn1/lib/ASN1/Composite/ -> AttributeTypeAndValue.php (source)

   1  <?php
   2  /*
   3   * This file is part of the PHPASN1 library.
   4   *
   5   * Copyright © Friedrich Große <[email protected]>
   6   *
   7   * For the full copyright and license information, please view the LICENSE
   8   * file that was distributed with this source code.
   9   */
  10  
  11  namespace FG\ASN1\Composite;
  12  
  13  use FG\ASN1\ASNObject;
  14  use FG\ASN1\Universal\Sequence;
  15  use FG\ASN1\Universal\ObjectIdentifier;
  16  
  17  class AttributeTypeAndValue extends Sequence
  18  {
  19      /**
  20       * @param ObjectIdentifier|string $objIdentifier
  21       * @param \FG\ASN1\ASNObject $value
  22       */
  23      public function __construct($objIdentifier, ASNObject $value)
  24      {
  25          if ($objIdentifier instanceof ObjectIdentifier == false) {
  26              $objIdentifier = new ObjectIdentifier($objIdentifier);
  27          }
  28          parent::__construct($objIdentifier, $value);
  29      }
  30  
  31      public function __toString()
  32      {
  33          return $this->children[0].': '.$this->children[1];
  34      }
  35  }


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