public function __construct(Identifier $identifier, ContentLength $contentLength, Content $content, array $children = []) { parent::__construct($identifier, $contentLength, $content, $children); for ($i = 1; $i < 128; $i++) { $this->allowCharacter(chr($i)); } }
public function __construct($string) { parent::__construct($string); for ($i = 1; $i < 128; $i++) { $this->allowCharacter(chr($i)); } }
/** * Creates a new ASN.1 PrintableString. * * The ITU-T X.680 Table 8 permits the following characters: * Latin capital letters A,B, ... Z * Latin small letters a,b, ... z * Digits 0,1, ... 9 * SPACE (space) * APOSTROPHE ' * LEFT PARENTHESIS ( * RIGHT PARENTHESIS ) * PLUS SIGN + * COMMA , * HYPHEN-MINUS - * FULL STOP . * SOLIDUS / * COLON : * EQUALS SIGN = * QUESTION MARK ? * * @param string $string */ public function __construct(Identifier $identifier, ContentLength $contentLength, Content $content, array $children = []) { parent::__construct($identifier, $contentLength, $content, $children); $this->allowNumbers(); $this->allowAllLetters(); $this->allowSpaces(); $this->allowCharacters("'", '(', ')', '+', '-', '.', ',', '/', ':', '=', '?'); }
public function __construct(Identifier $identifier, ContentLength $contentLength, Content $content, array $children = []) { parent::__construct($identifier, $contentLength, $content, $children); }
/** * Creates a new ASN.1 NumericString. * * The following characters are permitted: * Digits 0,1, ... 9 * SPACE (space) * * @param string $string */ public function __construct(Identifier $identifier, ContentLength $contentLength, Content $content, array $children = []) { parent::__construct($identifier, $contentLength, $content, $children); $this->allowNumbers(); $this->allowSpaces(); }