Maps
1 year ago
.htaccess
1 year ago
Element.php
1 year ago
index.html
1 year ago
web.config
1 year ago
Element.php
45 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * ASN.1 Raw Element |
| 5 | * |
| 6 | * PHP version 5 |
| 7 | * |
| 8 | * @author Jim Wigginton <terrafrost@php.net> |
| 9 | * @copyright 2012 Jim Wigginton |
| 10 | * @license http://www.opensource.org/licenses/mit-license.html MIT License |
| 11 | * @link http://phpseclib.sourceforge.net |
| 12 | */ |
| 13 | |
| 14 | declare(strict_types=1); |
| 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 | * |
| 24 | * @author Jim Wigginton <terrafrost@php.net> |
| 25 | */ |
| 26 | class Element |
| 27 | { |
| 28 | /** |
| 29 | * Raw element value |
| 30 | * |
| 31 | * @var string |
| 32 | */ |
| 33 | public $element; |
| 34 | |
| 35 | /** |
| 36 | * Constructor |
| 37 | * |
| 38 | * @return Element |
| 39 | */ |
| 40 | public function __construct(string $encoded) |
| 41 | { |
| 42 | $this->element = $encoded; |
| 43 | } |
| 44 | } |
| 45 |