phpseclib/phpseclib/File/ASN1/Element.php

45 lines
823 B
PHP
Raw Normal View History

<?php
2016-11-23 05:55:33 +00:00
/**
2016-11-23 05:55:33 +00:00
* ASN.1 Raw Element
2014-12-03 16:57:41 +00:00
*
2015-04-02 10:57:52 +00:00
* PHP version 5
2014-12-03 16:57:41 +00:00
*
* @author Jim Wigginton <terrafrost@php.net>
* @copyright 2012 Jim Wigginton
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @link http://phpseclib.sourceforge.net
*/
2022-06-04 15:31:21 +00:00
declare(strict_types=1);
namespace phpseclib3\File\ASN1;
2014-12-10 00:53:05 +00:00
/**
2016-11-23 05:55:33 +00:00
* ASN.1 Raw Element
*
2016-11-23 05:55:33 +00:00
* An ASN.1 ANY mapping will return an ASN1\Element object. Use of this object
* will also bypass the normal encoding rules in ASN1::encodeDER()
*
* @author Jim Wigginton <terrafrost@php.net>
*/
2014-12-10 00:53:05 +00:00
class Element
{
/**
* Raw element value
*
* @var string
*/
public $element;
/**
* Constructor
*
* @return Element
*/
2022-06-04 15:31:21 +00:00
public function __construct(string $encoded)
{
$this->element = $encoded;
}
2014-12-02 03:28:02 +00:00
}