Lines Matching refs:type
101 public static function fromAsn1(AbstractType $type)
103 $request = self::decodeEncodedValue($type);
105 throw new ProtocolException('An ExpectedEntryCount control value must be a sequence type.');
110 throw new ProtocolException('An ExpectedEntryCount control value sequence 0 must be an integer type.');
113 throw new ProtocolException('An ExpectedEntryCount control value sequence 1 must be an integer type.');
120 return self::mergeControlData($control, $type);
137 * @param AbstractType $type
140 protected static function validate(AbstractType $type): void
142 if (!($type instanceof SequenceType && count($type) === 2)) {
143 throw new ProtocolException('An ExpectedEntryCount control value must be a sequence type with 2 children.');
145 if (!$type->getChild(0) instanceof IntegerType) {
146 throw new ProtocolException('An ExpectedEntryCount control value sequence 0 must be an integer type.');
148 if (!$type->getChild(1) instanceof IntegerType) {
149 throw new ProtocolException('An ExpectedEntryCount control value sequence 1 must be an integer type.');