Open sergeyklay opened 9 years ago
I personally think that this is not necessary, I won't implement it for now, which doesn't mean that this won't be merged.
What is the difference to get
and getFallback()
?
namespace App;
class MyClass
{
protected fallback = true {
set, get
};
}
if ($component->isFalback())
better than
if ($component->getFalback())
Without isProperty shortcut we usually have code like:
My proposal is to introduce
is<property>
shortcut. So we can write the same code using shortcuts as follows: