Add accumulative metric.

@param EntryInterface $entry    Entry
@param string         $entryKey Key entry

@return $this Self Object
327255
private function addAccumulativeEntry(
        EntryInterface $entry,
        $entryKey
    ) {
        $this->doRedisQuery(function () use ($entry, $entryKey) {
            $this
                ->redis
                ->incrby(
                    $entryKey . '_accum',
                    (int) $entry->getValue()
                );
        });

        return $this;
    }
759888
protected function insertEntry(MenuEntry $entry, $ndx = NULL) {

		if($entry instanceof DynamicMenuEntry) {
			$this->dynamicEntries[] = $entry;
		}

		if(!isset($ndx) || $ndx >= count($this->entries)) {
			$this->entries[] = $entry;
		}
		else {
			array_splice($this->entries, $ndx, 0, [$entry]);
		}

		$entry->setMenu($this);
		
		return $this;

	}
232675
public function generate(string $entryIdentifier, string $fileName, string $data)
    {
        foreach ($this->getImplementationObjects() as $implementation) {
            /* @var $implementation AbstractGenerator */
            $implementation->generate($entryIdentifier, $fileName, $data);
        }
    }
423836
public function insertBeforeEntry(MenuEntry $new, MenuEntry $pos) {

		foreach($this->entries as $k => $e) {
			if($e === $pos) {
				$this->insertEntry($new, $k);
				break;
			}
		}
		
		return $this;

	}
258140
public function addEntry(LogEntry $entry)
	{
		echo $this->priorities[$entry->priority] . ': '
			. $entry->message . (empty($entry->category) ? '' : ' [' . $entry->category . ']')
			. $this->line_separator;
	}
468035
private void addEntry(K key, V value) {
    EntryImpl<K, V> entry = _poolFirst;
    if (entry != null) {
      _poolFirst = entry._after;
      entry._after = null;
    } else { // Pool empty.
      entry = new EntryImpl<K, V>();
    }

    // Setup entry paramters.
    entry._key = key;
    entry._value = value;
    int index = keyHash(key) & _mask;
    entry._index = index;

    // Connects to bucket.
    EntryImpl<K, V> next = _entries[index];
    entry._next = next;
    if (next != null) {
      next._previous = entry;
    }
    _entries[index] = entry;

    // Connects to collection.
    if (_mapLast != null) {
      entry._before = _mapLast;
      _mapLast._after = entry;
    } else {
      _mapFirst = entry;
    }
    _mapLast = entry;

    // Updates size.
    _size++;
    sizeChanged();
  }
1301942
public function add($id, $entry, array $args = [])
    {
        $this->container[$id] = new Service($entry, $args);

        return $this;
    }
11115
def add(entry_or_key, value = nil)
      if value.nil? and entry_or_key.is_a?(Entry) # treat as entry
        entry = entry_or_key
      else
        entry = Entry.new(entry_or_key)
        entry.password = value
      end

      entry.validate!

      @backend.transaction{
        timestamp!(:last_modified)
        @backend[:user][encrypt(entry.name)] = encrypt(EntryMapper.to_json(entry))
      }
    end
50311
public function removeEntry($entryId, $language = null)
    {
        $entryId = (string)$entryId;
        foreach ($this->entries as $languageKey => $entries) {
            if ($language && $language !== $languageKey) {
                continue;
            }
            if (isset($this->entries[$languageKey][$entryId])) {
                unset($this->entries[$languageKey][$entryId]);
            }
        }
        return $this;
    }
864567
public function addLog(array $entry)
    {
        $this->log[] = $entry;

        if ($this->observer) {
            call_user_func($this->observer, $entry);
        }
    }
1193499
public function add($file, $entry_name = null)
    {
        // Make sure to adapt the entry name as the original filename.
        if (!isset($entry_name)) {
            $entry_name = basename($file);
        }
        $result = $this->zip->addFile($file, $entry_name);
        if ($result === false) {
            throw new ArchiveException('Error adding ' . $file);
        }

        return $this;
    }
1199786
public function setRemoteEntry(Entry $remoteEntry): void
    {
        $this->remoteEntry = $remoteEntry;
        $this->id = $this->remoteEntry->getSpace()->getId() . '|' . $this->remoteEntry->getId();

        $contentType = $this->remoteEntry->getContentType();
        if ($contentType === null) {
            return;
        }

        $nameField = $contentType->getDisplayField();
        if ($nameField === null) {
            return;
        }

        /** @var callable $callable */
        $callable = [$remoteEntry, 'get' . $nameField->getId()];
        $this->name = call_user_func($callable);
    }
53668
public function add_entry_or_merge($entry)
    {
        if (is_array($entry)) {
            $entry = new EntryTranslations($entry);
        }
        $key = $entry->key();
        if (false === $key) {
            return false;
        }
        if (isset($this->entries[$key])) {
            $this->entries[$key]->merge_with($entry);
        } else {
            $this->entries[$key] = &$entry;
        }

        return true;
    }
1157912
public function add(MenuEntry $menu)
    {
        $menu->parent = $this;
        $menu->urlGenerator = $this->urlGenerator;
        $this->children[$menu->getName()] = $menu;

        return $menu;
    }
290544
public function store(CacheEntry $entry)
    {
        $cacheFilePath = $this->getCacheFilePath($entry->id());

        $packedData = serialize($entry->data());

        $fileContent = $entry->creationTimestamp() . "\n"
                     . ((null === $entry->expirationTimestamp()) ? '-' : $entry->expirationTimestamp()) . "\n"
                     . $packedData;

        if (false === file_put_contents($cacheFilePath, $fileContent)) {
            throw new \RuntimeException('Failed to store cache entry.');
        }
    }
1113811
def add(self, name, desc, func=None, args=None, krgs=None):
        """"""
        self.entries.append(MenuEntry(name, desc, func, args or [], krgs or {}))
340405
public function setEntry($language, $entryId, $entryValue)
    {
        $language   = (string)$language;
        $entryId    = (string)$entryId;
        $entryValue = (string)$entryValue;
        if (!isset($this->entries[$language]) && $entryValue) {
            $this->entries[$language] = array();
        }
        if ($entryValue) {
            $this->entries[$language][$entryId] = $entryValue;
        } else {
            if (isset($this->entries[$language][$entryId])) {
                unset($this->entries[$language][$entryId]);
            }
        }
        return $this;
    }