<?php

namespace App\Classes\Modules\PackingLists\Services\Containers;


use App\Classes\General\Eloquent\AbstractFetchRecord;
use Illuminate\Database\Eloquent\Builder;
use App\Models\Container;

class FetchesContainer extends AbstractFetchRecord
{

    /** @var Container */
    private $repository;

    /**
     * FetchesContainer constructor.
     * @param Container $repository
     */
    public function __construct(Container $repository)
    {
        $this->repository = $repository;
    }


    /**
     * @return Builder
     */
    public function getRepository(): Builder
    {
        return $this->repository->newQuery();
    }
}
