You can create these magic methods in a class for a variety of action types.
可以在一个类中为各种不同的动作创建这些魔术方法。
First, the complexity of classes increases tremendously when you start writing magic methods.
首先,在刚开始编写魔法方法时,类的复杂性显著增加。
Likewise, the __call magic method must also be defined public, just as all magic methods must be.
同样,__ call魔术方法必须被定义为公共的,所有其他魔术方法都必须如此。
应用推荐