[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/phpseclib/phpseclib/phpseclib/File/ASN1/ -> Element.php (source)

   1  <?php
   2  
   3  /**
   4   * ASN.1 Raw Element
   5   *
   6   * PHP version 5
   7   *
   8   * @author    Jim Wigginton <terrafrost@php.net>
   9   * @copyright 2012 Jim Wigginton
  10   * @license   http://www.opensource.org/licenses/mit-license.html  MIT License
  11   * @link      http://phpseclib.sourceforge.net
  12   */
  13  
  14  namespace phpseclib3\File\ASN1;
  15  
  16  /**
  17   * ASN.1 Raw Element
  18   *
  19   * An ASN.1 ANY mapping will return an ASN1\Element object. Use of this object
  20   * will also bypass the normal encoding rules in ASN1::encodeDER()
  21   *
  22   * @author  Jim Wigginton <terrafrost@php.net>
  23   */
  24  class Element
  25  {
  26      /**
  27       * Raw element value
  28       *
  29       * @var string
  30       */
  31      public $element;
  32  
  33      /**
  34       * Constructor
  35       *
  36       * @param string $encoded
  37       * @return \phpseclib3\File\ASN1\Element
  38       */
  39      public function __construct($encoded)
  40      {
  41          $this->element = $encoded;
  42      }
  43  }