Base
This commit is contained in:
20
app/Definition/hasRUT.php
Normal file
20
app/Definition/hasRUT.php
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
namespace App\Definition;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Aldarien
|
||||
* @property int rut
|
||||
* @property char dv
|
||||
*
|
||||
*/
|
||||
trait hasRUT
|
||||
{
|
||||
protected static $_id_column = 'rut';
|
||||
|
||||
public function fullRut()
|
||||
{
|
||||
return format('rut', $this->rut) . '-' . $this->dv;
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user