File "StorageIngest.php"
Full Path: /var/www/drive/laravel/pulse/src/Ingests/StorageIngest.php
File size: 839 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Laravel\Pulse\Ingests;
use Illuminate\Support\Collection;
use Laravel\Pulse\Contracts\Ingest;
use Laravel\Pulse\Contracts\Storage;
/**
* @internal
*/
class StorageIngest implements Ingest
{
/**
* Create a new Storage Ingest instance.
*/
public function __construct(protected Storage $storage)
{
//
}
/**
* Ingest the items.
*
* @param \Illuminate\Support\Collection<int, \Laravel\Pulse\Entry> $items
*/
public function ingest(Collection $items): void
{
$this->storage->store($items);
}
/**
* Trim the ingest.
*/
public function trim(): void
{
$this->storage->trim();
}
/**
* Digest the ingested items.
*/
public function digest(Storage $storage): int
{
return 0;
}
}