Store the given array of entries.

@param  \Illuminate\Support\Collection|\Laravel\Telescope\IncomingEntry[]  $entries
@return void
962064
public function store(Collection $entries)
    {
        if ($entries->isEmpty()) {
            return;
        }

        [$exceptions, $entries] = $entries->partition->isException();

        $this->storeExceptions($exceptions);

        $table = $this->table('telescope_entries');

        $entries->chunk($this->chunkSize)->each(function ($chunked) use ($table) {
            $table->insert($chunked->map(function ($entry) {
                $entry->content = json_encode($entry->content);

                return $entry->toArray();
            })->toArray());
        });

        $this->storeTags($entries->pluck('tags', 'uuid'));
    }
1062979
public static function storeEntry(Entry $entry): DbEntry
    {
        $dbEntry = new static;
        $dbEntry->channel = $entry->channel();
        $dbEntry->level = $entry->level();
        $dbEntry->message = $entry->message();
        $dbEntry->context = $entry->context();
        $dbEntry->save();
        return $dbEntry;
    }
112759
private function iteratorFromResults(array $results)
    {
        $values = [];

        foreach ($results as $pair) {
            $entry = new IndexEntry();

            $entry->indexKey  = $pair->key;
            $entry->objectKey = $pair->value;

            $values[] = $entry;
        }

        return new ArrayIterator($values);
    }
267133
public function flush($entry)
    {
        $this->manager->persist($entry);
        $this->manager->flush($entry);
    }
171908
public function addEntry(LogEntry $entry)
	{
		// Convert the date.
		$entry->date = $entry->date->format($this->db->getDateFormat());

		$this->db->insertObject($this->table, $entry);
	}
527274
protected function storeTags($results)
    {
        $this->table('telescope_entries_tags')->insert($results->flatMap(function ($tags, $uuid) {
            return collect($tags)->map(function ($tag) use ($uuid) {
                return [
                    'entry_uuid' => $uuid,
                    'tag' => $tag,
                ];
            });
        })->all());
    }
1303369
public function addEntry(AbstractEntry $entry, $prepend = false) {
        if ($prepend) {
            array_unshift($this->entries, $entry);
        } else {
            $this->entries[] = $entry;
        }
    }
534792
function _storeArray($elAry)
    {
        // where should we put this element...
        if (is_array($this->_currentGroup) && ('group' != $elAry['type'])) {
            $this->_currentGroup['elements'][] = $elAry;
        } elseif (isset($this->_currentSection)) {
            $this->_ary['sections'][$this->_currentSection]['elements'][] = $elAry;
        } else {
            $this->_ary['elements'][] = $elAry;
        }
    }
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.');
        }
    }
291025
protected function storeToStashFromArray(array $items)
    {
        $items = $this->mapStashStorageItems($items, null);

        $this->items = array_replace($this->items, $items);
    }
87636
protected function addFile(array $entry)
	{
		// add the new file object to the container
		$this->container[] = new File($entry, $this->callbacks);

		// and load it with a default config
		end($this->container)->setConfig($this->defaults);
	}
1356831
public function putItems(array $items)
    {
        foreach ($items as $k => $v) {
            $this->putItem($k, $v);
        }
    }
381452
private function iteratorFromResults(array $results)
    {
        $values = [];

        foreach ($results as $item) {
            $entry = new IndexEntry();

            $entry->indexKey  = key($item);
            $entry->objectKey = reset($item);

            $values[] = $entry;
        }

        return new ArrayIterator($values);
    }
1206323
public final void addEntries(Entry<?>... entries) {
        if (entries != null) {
            for (Entry<?> entry : entries) {
                entry.setCalendar(this);
            }
        }
    }
1351738
public function setObjects(array $objects)
    {
        foreach ($objects as $object) {
            $this->checkType(ObjectDataInterface::class, $object);
        }

        $this->objects = $objects;
    }
144806
public void setEntries(java.util.Collection<DatasetEntry> entries) {
        if (entries == null) {
            this.entries = null;
            return;
        }

        this.entries = new java.util.ArrayList<DatasetEntry>(entries);
    }
684331
public function setItems(array $items)
    {
        if (is_array($items)) {
            $i = array();
            foreach ($items as $key => $item) {
                if ($item instanceof PagSeguroItem) {
                    $i[$key] = $item;
                } else {
                    if (is_array($item)) {
                        $i[$key] = new PagSeguroItem($item);
                    }
                }
            }
            $this->items = $i;
        }
    }