I want to call a method automatically if a given situation occurs so I am trying to mount the method name.
The methods I'm going to do this are gets and seters:
$obj->get + $restanteDoNomeDoMetodo + ()
When trying to perform this join, this error is occurring, the code interpreter is identifying get as variable, and is it part of the name of a method that exists in a class some idea how to solve it? >
I tried some variations to concatenate as terms between '' and {} all of them result in error
$stmt->bindValue(":{$this->columns[$i]}",
$this->entity->{'get'.ucfirst($this->columns[$i]).'()'});
Someone could help me in this matter already thanks.
Erro: Notice: Undefined property: Cliente::$getNome() in
C:\Users\Vinicius\Desktop\pdo\ServiceDb.php on line 67
1