Lines Matching refs:type
43 public function encode(AbstractType $type): string
45 $this->validate($type);
47 return parent::encode($type);
55 $type = parent::decodeBytes($isRoot, $tagType, $length, $isConstructed, $class);
56 $this->validate($type);
58 return $type;
85 * @param AbstractType $type
88 protected function validate(AbstractType $type): void
90 if ($type instanceof OctetStringType && $type->getIsConstructed()) {
93 if ($type instanceof BitStringType && $type->getIsConstructed()) {
96 if ($type instanceof AbstractStringType && $type->isCharacterRestricted() && $type->getIsConstructed()) {
99 if ($type instanceof AbstractTimeType) {
100 $this->validateTimeType($type);