TahunProgramDetailServices.php 595 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Services;
  3. use App\Repositories\TahunProgramDetailRepositories as repo;
  4. use Exception;
  5. use Illuminate\Support\Facades\DB;
  6. use Illuminate\Support\Facades\Log;
  7. use InvalidArgumentException;
  8. class TahunProgramDetailServices {
  9. private $repo;
  10. public function __construct(repo $repo)
  11. {
  12. $this->repo = $repo;
  13. }
  14. public function repoGetData($id) {
  15. return $this->repo->get($id);
  16. }
  17. public function repoSave($data) {
  18. return $this->repo->save($data);
  19. }
  20. public function repoDeleteById($id) {
  21. return $this->repo->delete($id);
  22. }
  23. }