TemplateParser
in package
Table of Contents
- parseBase64() : ASNObject|Sequence
- parseBinary() : ASNObject|Sequence
- assertTypeId() : mixed
- validate() : mixed
Methods
parseBase64()
public
parseBase64(string $data, array<string|int, mixed> $template) : ASNObject|Sequence
Parameters
- $data : string
- $template : array<string|int, mixed>
Tags
Return values
ASNObject|Sequence —parseBinary()
public
parseBinary(string $binary, array<string|int, mixed> $template) : ASNObject|Sequence
Parameters
- $binary : string
- $template : array<string|int, mixed>
Tags
Return values
ASNObject|Sequence —assertTypeId()
private
assertTypeId(mixed $expectedTypeId, ASNObject $object) : mixed
Parameters
- $expectedTypeId : mixed
- $object : ASNObject
Return values
mixed —validate()
private
validate(ASNObject $object, mixed $key, mixed $value) : mixed
Parameters
- $object : ASNObject
- $key : mixed
- $value : mixed