2
I am using a framework email library class Nette.
Then at some point, instead of calling the method setSubject
- which is the correct method, I called addSubject
, because I had forgotten the name of the method.
Soon I was returned the following error:
Method addSubject does not exist. Did you Mean setSubject?
That is, he suggested that the correct name of the class method was setSubject
.
How can I do this in one (or several) of my PHP classes?
Example:
class Myclass
{
public function callMethod()
{
}
}
(new MyClass)->callMyMethod(); // Lança a exceção sugerindo o nome correto
+1 legal. I believe it’s right there :)
– Wallace Maxters