Element.php 870 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Pure-PHP ASN.1 Parser
  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 Element
  17. *
  18. * Bypass normal encoding rules in phpseclib\File\ASN1::encodeDER()
  19. *
  20. * @package ASN1
  21. * @author Jim Wigginton <terrafrost@php.net>
  22. * @access public
  23. */
  24. class Element
  25. {
  26. /**
  27. * Raw element value
  28. *
  29. * @var string
  30. * @access private
  31. */
  32. var $element;
  33. /**
  34. * Constructor
  35. *
  36. * @param string $encoded
  37. * @return \phpseclib\File\ASN1\Element
  38. * @access public
  39. */
  40. function __construct($encoded)
  41. {
  42. $this->element = $encoded;
  43. }
  44. }