27 lines
563 B
PHP
27 lines
563 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\TvaRate;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class TvaRateRepository extends BaseRepository implements TvaRateRepositoryInterface
|
|
{
|
|
public function __construct(TvaRate $model)
|
|
{
|
|
parent::__construct($model);
|
|
}
|
|
|
|
public function all(array $columns = ['*']): Collection
|
|
{
|
|
return $this->model->get($columns);
|
|
}
|
|
|
|
public function find(int|string $id, array $columns = ['*']): ?TvaRate
|
|
{
|
|
return $this->model->find($id, $columns);
|
|
}
|
|
}
|