mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
25 lines
466 B
PHP
25 lines
466 B
PHP
|
<?php namespace App\Services;
|
||
|
|
||
|
use App\Services\BaseService;
|
||
|
use App\Ninja\Repositories\CreditRepository;
|
||
|
|
||
|
|
||
|
class CreditService extends BaseService
|
||
|
{
|
||
|
protected $creditRepo;
|
||
|
|
||
|
public function __construct(CreditRepository $creditRepo)
|
||
|
{
|
||
|
$this->creditRepo = $creditRepo;
|
||
|
}
|
||
|
|
||
|
protected function getRepo()
|
||
|
{
|
||
|
return $this->creditRepo;
|
||
|
}
|
||
|
|
||
|
public function save($data)
|
||
|
{
|
||
|
return $this->creditRepo->save($data);
|
||
|
}
|
||
|
}
|