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