1 | <?php |
||
16 | class UserNoticeQualifier extends PolicyQualifierInfo |
||
17 | { |
||
18 | /** |
||
19 | * Explicit notice text. |
||
20 | * |
||
21 | * @var DisplayText $_text |
||
22 | */ |
||
23 | protected $_text; |
||
24 | |||
25 | /** |
||
26 | * Notice reference. |
||
27 | * |
||
28 | * @var NoticeReference $_ref |
||
29 | */ |
||
30 | protected $_ref; |
||
31 | |||
32 | /** |
||
33 | * Constructor |
||
34 | * |
||
35 | * @param DisplayText|null $text |
||
36 | * @param NoticeReference|null $ref |
||
37 | */ |
||
38 | 12 | public function __construct(DisplayText $text = null, |
|
44 | |||
45 | /** |
||
46 | * |
||
47 | * @param UnspecifiedType $el |
||
48 | * @return self |
||
49 | */ |
||
50 | 7 | public static function fromQualifierASN1(UnspecifiedType $el) { |
|
63 | |||
64 | /** |
||
65 | * Whether explicit text is present. |
||
66 | */ |
||
67 | 4 | public function hasExplicitText() { |
|
70 | |||
71 | /** |
||
72 | * Get explicit text. |
||
73 | * |
||
74 | * @return DisplayText |
||
75 | */ |
||
76 | 4 | public function explicitText() { |
|
82 | |||
83 | /** |
||
84 | * Whether notice reference is present. |
||
85 | * |
||
86 | * @return bool |
||
87 | */ |
||
88 | 4 | public function hasNoticeRef() { |
|
91 | |||
92 | /** |
||
93 | * Get notice reference. |
||
94 | * |
||
95 | * @throws \RuntimeException |
||
96 | * @return NoticeReference |
||
97 | */ |
||
98 | 4 | public function noticeRef() { |
|
104 | |||
105 | 4 | protected function _qualifierASN1() { |
|
115 | } |
||
116 |