Reservation Fixes

This commit is contained in:
Juan Pablo Vial
2025-09-09 16:24:48 -03:00
parent e5cf4e7067
commit e36281d924
6 changed files with 47 additions and 33 deletions

View File

@ -39,15 +39,15 @@ class Persona extends Ideal\Model
public function __get(string $name): mixed
{
if (property_exists($this, $name)) {
return $this->{$name};
}
if ($name === 'datos') {
return $this->datos();
}
if ($name === 'dv') {
return $this->digito;
}
if (property_exists($this, $name)) {
return $this->{$name};
}
throw new InvalidArgumentException("Property {$name} is not found in " . __CLASS__);
}