This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Core\Utils\ProgressMonitor; | |
interface IProgressMonitor { | |
/** | |
* Starts a new progress monitor | |
* | |
* @param string $title The title of progress monitor | |
* @param int|null $max |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select c.id, | |
c.number, | |
dates.date, | |
closed_balances.balance as closed_balance, | |
debits.debit, | |
credits.credit, | |
sum( | |
case dates.date | |
when :start_date then closed_balances.balance + debit - credit | |
else debit - credit end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$clientId = UUID::generate(); // 82dfc5ba-ec9a-40c8-8cfb-561dbbc09abe | |
$client = Client::create(['id' => $clientId, 'name' => 'Gulugulu']); | |
$application = Application::create(['client_id' => $clientId, 'number' => '1']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use App\Core\Audit\Models\Activity; | |
use Illuminate\Console\Command; | |
class KafkaConsume extends Command | |
{ | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jdbi.v3.core.kotlin.KotlinMapper | |
import org.jdbi.v3.core.mapper.RowMapperFactory | |
import org.junit.jupiter.api.Test | |
import tj.alif.core.app.db.RepositoryTest | |
import org.jdbi.v3.core.result.RowView | |
data class Contact ( | |
val id: Int, | |
val name: String, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.junit.jupiter.api.Test | |
import tj.alif.core.app.db.RepositoryTest | |
import org.jdbi.v3.core.result.RowView | |
import java.lang.Integer | |
data class Contact ( | |
val id: Int, | |
val name: String, | |
var phones: MutableList<Phone> = mutableListOf() |