<?php

namespace App\Classes\Modules\PackingLists\Services;


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

class FetchesPackingList extends AbstractFetchRecord
{

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

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


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