Element.php 959 B

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