type = $type; $this->arrayNestingLevel = $arrayNestingLevel; $this->keyType = $keyType; } public function getType() : Type { return $this->type; } public function getArrayNestingLevel() : int { return $this->arrayNestingLevel; } public function getKeyType() : Type { if ($this->keyType instanceof Type) { return $this->keyType; } return new MixedType(); } }