$value->toAttribute(), $values)); } /** * Generate ASN.1 structure. */ public function toASN1(): Set { $set = Set::create(...array_map(static fn (Attribute $attr) => $attr->toASN1(), $this->_attributes)); return $set->sortedSetOf(); } }