| 1 | <?php |
||
| 16 | class TargetName extends Target |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Name. |
||
| 20 | * |
||
| 21 | * @var GeneralName $_name |
||
| 22 | */ |
||
| 23 | protected $_name; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor. |
||
| 27 | * |
||
| 28 | * @param GeneralName $name |
||
| 29 | */ |
||
| 30 | 16 | public function __construct(GeneralName $name) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * |
||
| 38 | * @param TaggedType $el |
||
| 39 | * @return self |
||
| 40 | */ |
||
| 41 | 5 | public static function fromChosenASN1(TaggedType $el): self |
|
| 45 | |||
| 46 | /** |
||
| 47 | * |
||
| 48 | * {@inheritdoc} |
||
| 49 | */ |
||
| 50 | 3 | public function string(): string |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Get name. |
||
| 57 | * |
||
| 58 | * @return GeneralName |
||
| 59 | */ |
||
| 60 | 1 | public function name(): GeneralName |
|
| 64 | |||
| 65 | /** |
||
| 66 | * |
||
| 67 | * {@inheritdoc} |
||
| 68 | * @return ExplicitlyTaggedType |
||
| 69 | */ |
||
| 70 | 13 | public function toASN1(): TaggedType |
|
| 74 | } |
||
| 75 |