invoiceninja/app/Services/CreditService.php
2015-10-28 21:22:07 +02:00

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);
}
}