commandBus = $commandBus; $this->key = $key; } public function add(Value ...$values): void { foreach ($values as $value) { $this->commandBus->dispatch(C::add($this->key, $value)); } } }