pdv.backend/stubs/cast.stub
2025-06-01 12:32:11 -06:00

34 lines
757 B
Plaintext

<?php namespace {{ namespace }};
/**
* @copyright (c) 2025 Notsoweb Software (https://notsoweb.com) - All Rights Reserved
*/
use Illuminate\Database\Eloquent\Model;
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
/**
* Descripción
*
* @author Moisés Cortés C. <moises.cortes@notsoweb.com>
*
* @version 1.0.0
*/
class {{ class }} implements CastsAttributes
{
/**
* Transformar valor dado.
*/
public function get(Model $model, string $key, mixed $value, array $attributes): mixed
{
return $value;
}
/**
* Prepara el valor dado para almacenamiento.
*/
public function set(Model $model, string $key, mixed $value, array $attributes): mixed
{
return $value;
}
}