class NormalUser extends AbstractUser { protected $discount = 1.0; protected $grade = "NormalUser"; public function getName(){ // 要实现接口中的这个方法 } }其实错误提示已经很清楚了 Fatal error: Class NormalUser contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (User::getName)
protected $discount = 1.0;
protected $grade = "NormalUser";
public function getName(){ // 要实现接口中的这个方法
}
}其实错误提示已经很清楚了
Fatal error: Class NormalUser contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (User::getName)