/** * {@inheritDoc} */ public function addMany(Collection $characters) { $characters->traverseWith(function (CodepointAssigned $c) { $codepoint = $c->getCodepoint(); $index = $this->indexFromCodepoint($codepoint); $this->characters[$index] = $c; $this->notify(); }); }
/** * {@inheritDoc} */ public function addMany(Collection $characters) { $function = __FUNCTION__; $characters->traverseWith(function (CodepointAssigned $c) use($function) { $this->logMethodCall($function, [(string) $c->getCodepoint()]); }); $this->delegate->addMany($characters); $this->notify(); }