Files
2020-08-12 04:16:41 +08:00

33 lines
606 B
PHP

<?php
namespace App\Classes\Modules\Contacts\Services;
use App\Classes\General\Eloquent\AbstractListRecord;
use Illuminate\Database\Eloquent\Builder;
use App\Models\Contact;
class ListsContacts extends AbstractListRecord
{
/** @var Contact */
private $repository;
/**
* ListsContacts constructor.
* @param Contact $repository
*/
public function __construct(Contact $repository)
{
$this->repository = $repository;
}
/**
* @return Builder
*/
function getRepository(): Builder
{
return $this->repository->newQuery();
}
}