<?php

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


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

class ListsPackageItems extends AbstractListRecord
{

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

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


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