Reservation Fixes
This commit is contained in:
@ -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__);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user