1 | <?php |
||
21 | abstract class IetfAttrSyntax extends AttributeValue implements |
||
22 | \Countable, |
||
23 | \IteratorAggregate |
||
24 | { |
||
25 | /** |
||
26 | * Policy authority. |
||
27 | * |
||
28 | * @var GeneralNames|null $_policyAuthority |
||
29 | */ |
||
30 | protected $_policyAuthority; |
||
31 | |||
32 | /** |
||
33 | * Values. |
||
34 | * |
||
35 | * @var IetfAttrValue[] $_values |
||
36 | */ |
||
37 | protected $_values; |
||
38 | |||
39 | /** |
||
40 | * Constructor. |
||
41 | * |
||
42 | * @param IetfAttrValue[] $values |
||
43 | */ |
||
44 | public function __construct(IetfAttrValue ...$values) |
||
49 | |||
50 | /** |
||
51 | * |
||
52 | * @param UnspecifiedType $el |
||
53 | * @return self |
||
54 | */ |
||
55 | public static function fromASN1(UnspecifiedType $el) |
||
78 | |||
79 | /** |
||
80 | * Get self with policy authority. |
||
81 | * |
||
82 | * @param GeneralNames $names |
||
83 | * @return self |
||
84 | */ |
||
85 | public function withPolicyAuthority(GeneralNames $names) |
||
91 | |||
92 | /** |
||
93 | * Check whether policy authority is present. |
||
94 | * |
||
95 | * @return bool |
||
96 | */ |
||
97 | public function hasPolicyAuthority(): bool |
||
101 | |||
102 | /** |
||
103 | * Get policy authority. |
||
104 | * |
||
105 | * @throws \LogicException |
||
106 | * @return GeneralNames |
||
107 | */ |
||
108 | public function policyAuthority(): GeneralNames |
||
115 | |||
116 | /** |
||
117 | * Get values. |
||
118 | * |
||
119 | * @return IetfAttrValue[] |
||
120 | */ |
||
121 | public function values(): array |
||
125 | |||
126 | /** |
||
127 | * Get first value. |
||
128 | * |
||
129 | * @throws \LogicException |
||
130 | * @return IetfAttrValue |
||
131 | */ |
||
132 | public function first(): IetfAttrValue |
||
139 | |||
140 | /** |
||
141 | * |
||
142 | * @see \X501\ASN1\AttributeValue\AttributeValue::toASN1() |
||
143 | * @return Sequence |
||
144 | */ |
||
145 | public function toASN1(): Sequence |
||
159 | |||
160 | /** |
||
161 | * |
||
162 | * @see \X501\ASN1\AttributeValue\AttributeValue::stringValue() |
||
163 | * @return string |
||
164 | */ |
||
165 | public function stringValue(): string |
||
169 | |||
170 | /** |
||
171 | * |
||
172 | * @see \X501\ASN1\AttributeValue\AttributeValue::equalityMatchingRule() |
||
173 | * @return BinaryMatch |
||
174 | */ |
||
175 | public function equalityMatchingRule(): BinaryMatch |
||
179 | |||
180 | /** |
||
181 | * |
||
182 | * @see \X501\ASN1\AttributeValue\AttributeValue::rfc2253String() |
||
183 | * @return string |
||
184 | */ |
||
185 | public function rfc2253String(): string |
||
189 | |||
190 | /** |
||
191 | * |
||
192 | * @see \X501\ASN1\AttributeValue\AttributeValue::_transcodedString() |
||
193 | * @return string |
||
194 | */ |
||
195 | protected function _transcodedString(): string |
||
199 | |||
200 | /** |
||
201 | * Get number of values. |
||
202 | * |
||
203 | * @see \Countable::count() |
||
204 | * @return int |
||
205 | */ |
||
206 | public function count(): int |
||
210 | |||
211 | /** |
||
212 | * Get iterator for values. |
||
213 | * |
||
214 | * @see \IteratorAggregate::getIterator() |
||
215 | * @return \ArrayIterator |
||
216 | */ |
||
217 | public function getIterator(): \ArrayIterator |
||
221 | } |
||
222 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..