Subversion Repositories oidplus

Rev

Rev 846 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
827 daniel-mar 1
<?php
2
 
3
/**
4
 * ASN.1 Raw Element
5
 *
6
 * PHP version 5
7
 *
874 daniel-mar 8
 * @category  File
9
 * @package   ASN1
827 daniel-mar 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
 
16
namespace 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
 *
874 daniel-mar 24
 * @package ASN1
827 daniel-mar 25
 * @author  Jim Wigginton <terrafrost@php.net>
874 daniel-mar 26
 * @access  public
827 daniel-mar 27
 */
28
class Element
29
{
30
    /**
31
     * Raw element value
32
     *
33
     * @var string
874 daniel-mar 34
     * @access private
827 daniel-mar 35
     */
36
    public $element;
37
 
38
    /**
39
     * Constructor
40
     *
41
     * @param string $encoded
42
     * @return \phpseclib3\File\ASN1\Element
874 daniel-mar 43
     * @access public
827 daniel-mar 44
     */
45
    public function __construct($encoded)
46
    {
47
        $this->element = $encoded;
48
    }
49
}