# disk-usage-insights/1.6/src/Domain/Jobs/BaseJob.php

Disk Usage Insights, version 1.6. 36 lines.

- Page: https://pluginprobe.com/plugins/disk-usage-insights/1.6/code/src/Domain/Jobs/BaseJob.php
- Raw: https://pluginprobe.com/plugins/disk-usage-insights/1.6/raw/src/Domain/Jobs/BaseJob.php
- Modified: 2025-04-08T13:02:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/disk-usage-insights/1.6/code/src/Domain/Jobs/BaseJob.php#L10-L20`.

```php
<?php

namespace Mgleis\DiskUsageInsights\Domain\Jobs;

use Mgleis\DiskUsageInsights\Domain\FileEntryRepository;
use Mgleis\DiskUsageInsights\Domain\SnapshotRepository;
use Mgleis\PhpSqliteJobQueue\Queue;

class BaseJob {
    protected Queue $queue;
    protected FileEntryRepository $fileEntryRepository;
    protected SnapshotRepository $snapshotRepository;

    public function setQueue(Queue $q) {
        $this->queue = $q;
    }

    public function setFileEntryRepository(FileEntryRepository $fileEntryRepository) {
        $this->fileEntryRepository = $fileEntryRepository;
    }

    public function setSnapshotRepository(SnapshotRepository $snapshotRepository) {
        $this->snapshotRepository = $snapshotRepository;
    }

    protected function log(string $s) {
        //echo $s."\n";
        //error_log($s);
    }

    public function toDescription(): string {
        return static::class;
    }

}

```
