Lines Matching refs:type
190 public static function fromAsn1(AbstractType $type)
192 if (!$type instanceof SequenceType) {
194 'Protocol encoding issue. Expected a sequence type but received: %s',
195 get_class($type)
199 return new static(...self::parseAsn1ControlValues($type));
204 * @param AbstractType $type
208 protected static function mergeControlData(Control $control, AbstractType $type)
210 if (!($type instanceof SequenceType && count($type->getChildren()) <= 3)) {
213 count($type->getChildren())
216 [0 => $control->controlType, 1 => $control->criticality, 2 => $control->controlValue] = self::parseAsn1ControlValues($type);
222 * @param AbstractType $type
228 protected static function decodeEncodedValue(AbstractType $type)
230 if (!$type instanceof SequenceType) {
234 [2 => $value] = self::parseAsn1ControlValues($type);
243 * @param SequenceType $type
246 protected static function parseAsn1ControlValues(SequenceType $type)
256 foreach ($type->getChildren() as $i => $child) {