<?php

namespace App\Repositories\Eloquent;

use App\Models\DisbursementAttachment;
use App\Repositories\Interfaces\DisbursementAttachmentRepositoryInterface;
use Illuminate\Support\Collection;

class DisbursementAttachmentRepository extends BaseRepository implements DisbursementAttachmentRepositoryInterface
{

    /**
     * DisbursementAttachmentRepository constructor.
     *
     * @param Tagline $model
     */
    public function __construct(DisbursementAttachment $model)
    {
        parent::__construct($model);
    }

    public function getByDisbursement($disbursementId)
    {
        return $this->model->where('disbursement_id', $disbursementId)->get();
    }
}
