<?php

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


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

class ListsPackages extends AbstractListRecord
{

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

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


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