1 | <?php |
||
16 | class ConstructedString extends Structure |
||
17 | { |
||
18 | /** |
||
19 | * Constructor. |
||
20 | * |
||
21 | * @param Element ...$elements Any number of elements |
||
22 | */ |
||
23 | protected function __construct(Element ...$elements) |
||
27 | |||
28 | /** |
||
29 | * Create constructed string. |
||
30 | * |
||
31 | * @param int $tag Type tag |
||
32 | * @param PrimitiveString ...$elements Any number of elements |
||
33 | */ |
||
34 | public static function create(int $tag, PrimitiveString ...$elements) |
||
40 | |||
41 | /** |
||
42 | * Get a list of strings in this structure. |
||
43 | * |
||
44 | * @return string[] |
||
45 | */ |
||
46 | public function strings(): array |
||
52 | |||
53 | /** |
||
54 | * Get the contained strings concatenated together. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function concatenated(): string |
||
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | * |
||
66 | * @return self |
||
67 | */ |
||
68 | protected static function _decodeFromDER( |
||
81 | } |
||
82 |