This commit is contained in:
2022-06-13 21:36:52 -04:00
parent 3580738273
commit 42a97bb074
100 changed files with 2574 additions and 313 deletions

25
src/Mapper/Banco.php Normal file
View File

@ -0,0 +1,25 @@
<?php
namespace Incoviba\Mapper;
use Incoviba\Model\Model;
use Incoviba\Model\Common\Banco as BancoModel;
class Banco extends Mapper
{
protected string $table = 'banco';
protected function load(bool|array $row, bool $lazy = false): BancoModel|bool
{
if (!$row) return false;
$model = new BancoModel();
$model->id = $row['id'];
$model->nombre = $row['nombre'];
return $model;
}
public function save(Model $model): bool
{
// TODO: Implement save() method.
}
}