15 lines
424 B
PHP
15 lines
424 B
PHP
<?php
|
|
|
|
namespace App\Repositories;
|
|
|
|
use App\Models\EmissionFactorMitigation;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class EloquentEmissionFactorRepository implements EmissionFactorRepository
|
|
{
|
|
public function getByMitigation(string $mitigationId): Collection
|
|
{
|
|
return EmissionFactorMitigation::where('mitigation_id', $mitigationId)
|
|
->get(['sequence', 'unit', 'type', 'value', 'keterangan']);
|
|
}
|
|
} |