1<?php 2/* 3 * This file is part of the PHPASN1 library. 4 * 5 * Copyright © Friedrich Große <friedrich.grosse@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 FG\ASN1\Universal; 12 13use FG\ASN1\AbstractString; 14use FG\ASN1\Identifier; 15 16class CharacterString extends AbstractString 17{ 18 public function __construct($string) 19 { 20 $this->value = $string; 21 $this->allowAll(); 22 } 23 24 public function getType() 25 { 26 return Identifier::CHARACTER_STRING; 27 } 28} 29