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 ASN1 null type. 15 * 16 * @author Chad Sikorra <Chad.Sikorra@gmail.com> 17 */ 18class NullType extends AbstractType 19{ 20 protected $tagNumber = self::TAG_TYPE_NULL; 21 22 public function __construct() 23 { 24 parent::__construct(null); 25 } 26 27 public static function withTag($tagNumber, $class) 28 { 29 $type = new self(); 30 $type->tagNumber = $tagNumber; 31 $type->taggingClass = $class; 32 33 return $type; 34 } 35} 36