<?php

namespace App\Repositories\Eloquent;

use App\Models\Payment;
use App\Repositories\Interfaces\PaymentRepositoryInterface;
use Illuminate\Support\Collection;

class PaymentRepository extends BaseRepository implements PaymentRepositoryInterface
{

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

    public function disbursePayment($payload)
    {
        return $this->model->whereIn('id', $payload['payment_ids'])->update($payload['attributes']);
    }
}
