first commit

This commit is contained in:
2024-07-12 08:03:32 +07:00
commit 7f9359656d
122 changed files with 13427 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
<?php
/**
* Created by PhpStorm.
* User: USER
* Date: 11/05/2024
* Time: 13:07
*/
namespace App\Models\Qris\v1;
class QrisJatimCheckStatusQrisRequest extends \stdClass
{
private $username = "";
private $password = "";
private $invoice_number = "";
public function __construct($response)
{
$has = get_object_vars($this);
foreach ($has as $name => $oldValue) {
!array_key_exists($name, $response) ?: $this->$name = $response[$name];
}
}
public function toArray(): array
{
$has = get_object_vars($this);
$response = array();
foreach ($has as $name => $value) {
if (gettype($value) === 'object') {
$response[$name] = $value->toArray();
} else {
$response[$name] = $value;
}
}
return $response;
}
public function getusername()
{
return $this->username;
}
public function setusername($username): void
{
$this->username = $username;
}
public function getpassword()
{
return $this->password;
}
public function setpassword($password): void
{
$this->password = $password;
}
public function getinvoice_number()
{
return $this->invoice_number;
}
public function setinvoice_number($invoice_number): void
{
$this->invoice_number = $invoice_number;
}
}