mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
32 lines
787 B
PHP
32 lines
787 B
PHP
<?php
|
|
namespace App\Entities\Tarifas\Maquinas;
|
|
|
|
use App\Entities\Tarifas\TarifapreimpresionEntity;
|
|
use App\Models\Tarifas\TarifapreimpresionModel;
|
|
use CodeIgniter\Entity\Entity;
|
|
|
|
|
|
class TarifaPreimpresionMaquinaEntity extends Entity
|
|
{
|
|
protected $attributes = [
|
|
"id" => null,
|
|
"tarifa_preimpresion_id" => null,
|
|
"maquina_id" => null,
|
|
"maquina_tarea_id" => null,
|
|
|
|
];
|
|
protected $casts = [
|
|
"id" => "integer",
|
|
"tarifa_preimpresion_id" => "integer",
|
|
"maquina_id" => "integer",
|
|
"maquina_tarea_id" => "?integer",
|
|
|
|
];
|
|
|
|
public function tarifa_acabado(): TarifapreimpresionEntity
|
|
{
|
|
$m = model(TarifapreimpresionModel::class);
|
|
return $m->find($this->attributes["tarifa_preimpresion_id"]);
|
|
}
|
|
}
|