<?php

namespace App\Classes\Modules\PackingLists\Services\Packages\Items;


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

class FetchesItem extends AbstractFetchRecord
{

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

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


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