Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class EDIPartyName extends GeneralName |
||
21 | { |
||
22 | /** |
||
23 | * @var \Sop\ASN1\Element |
||
24 | */ |
||
25 | protected $_element; |
||
26 | |||
27 | /** |
||
28 | * Constructor. |
||
29 | */ |
||
30 | 2 | protected function __construct() |
|
31 | { |
||
32 | 2 | $this->_tag = self::TAG_EDI_PARTY_NAME; |
|
33 | 2 | } |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | * |
||
38 | * @return self |
||
39 | */ |
||
40 | 2 | public static function fromChosenASN1(UnspecifiedType $el): GeneralName |
|
41 | { |
||
42 | 2 | $obj = new self(); |
|
43 | 2 | $obj->_element = $el->asSequence(); |
|
44 | 2 | return $obj; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritdoc} |
||
49 | */ |
||
50 | 1 | public function string(): string |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * {@inheritdoc} |
||
57 | */ |
||
58 | 1 | protected function _choiceASN1(): TaggedType |
|
61 | } |
||
62 | } |
||
63 |