1<?php
2/**
3 * This file is part of the FreeDSx ASN1 package.
4 *
5 * (c) Chad Sikorra <Chad.Sikorra@gmail.com>
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11namespace FreeDSx\Asn1\Type;
12
13/**
14 * Represents an incomplete ASN1 type where there was not enough information available to decode it. The value contains
15 * the complete binary value.
16 *
17 * @author Chad Sikorra <Chad.Sikorra@gmail.com>
18 */
19class IncompleteType extends AbstractType
20{
21    /**
22     * @param string $value
23     * @param int $tagNumber
24     * @param int $class
25     * @param bool $isConstructed
26     */
27    public function __construct($value, $tagNumber = null, int $class = AbstractType::TAG_CLASS_UNIVERSAL, bool $isConstructed = false)
28    {
29        $this->tagNumber = $tagNumber;
30        $this->taggingClass = $class;
31        $this->isConstructed = $isConstructed;
32        parent::__construct($value);
33    }
34}
35