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