Lines Matching defs:type
71 public static function fromAsn1(AbstractType $type)
73 if (!$type instanceof SequenceType) {
76 [0 => $oid, 1 => $criticality, 2 => $value] = self::parseAsn1ControlValues($type);
80 $request = self::decodeEncodedValue($type);
82 throw new ProtocolException('An ExtendedDn control value must be a sequence type.');
86 throw new ProtocolException('An ExtendedDn control value sequence 0 must be an integer type.');
110 * @param AbstractType $type
113 protected static function validate(AbstractType $type): void
115 if (!($type instanceof SequenceType && count($type) === 1)) {
116 throw new ProtocolException('An ExtendedDn control value must be a sequence type with 1 child.');
118 if (!$type->getChild(0) instanceof IntegerType) {
119 throw new ProtocolException('An ExtendedDn control value sequence 0 must be an integer type.');