1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace FG\ASN1\Universal;
- use FG\ASN1\AbstractString;
- use FG\ASN1\Identifier;
- class PrintableString extends AbstractString
- {
-
- public function __construct($string)
- {
- $this->value = $string;
- $this->allowNumbers();
- $this->allowAllLetters();
- $this->allowSpaces();
- $this->allowCharacters("'", '(', ')', '+', '-', '.', ',', '/', ':', '=', '?');
- }
- public function getType()
- {
- return Identifier::PRINTABLE_STRING;
- }
- }
|