CharacterString.php 586 B

12345678910111213141516171819202122232425262728
  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. namespace FG\ASN1\Universal;
  11. use FG\ASN1\AbstractString;
  12. use FG\ASN1\Identifier;
  13. class CharacterString extends AbstractString
  14. {
  15. public function __construct($string)
  16. {
  17. $this->value = $string;
  18. $this->allowAll();
  19. }
  20. public function getType()
  21. {
  22. return Identifier::CHARACTER_STRING;
  23. }
  24. }