<?php

namespace App\Modules\Credential\Infrastructure;

use App\Modules\Credential\Domain\CredentialRepository;
use App\Modules\Shared\Application\SelectHandler;
use Illuminate\Support\Facades\DB;

class MysqlCredentialRepository implements CredentialRepository
{

    public function all()
    {
        return (new SelectHandler())->handle(DB::select(
            'CALL sp_credential_list()',
            []
        ));
    }
}
