clrghouz/app/Models/Origin.php
Deon George 742f0cd015
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 39s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m46s
Create Docker Image / Final Docker Image Manifest (push) Successful in 12s
More UTF8 message processing fixes, specifically related to tagline/tearline/origin processing
2024-06-05 21:57:16 +10:00

24 lines
450 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Casts\UTF8StringOrNull;
class Origin extends Model
{
//use HasFactory;
public const UPDATED_AT = NULL;
protected $casts = [
'value' => UTF8StringOrNull::class,
];
public function complete(Address $o): string
{
return sprintf(' * Origin: %s (%s)',$this->value,$o->point_id ? $o->ftn4d : $o->ftn3d);
}
}