<?php

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


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

class FetchesPackage extends AbstractFetchRecord
{

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

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


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