【发布时间】:2016-12-15 08:27:17
【问题描述】:
当我在 Laravel 5 项目中查看代码时,我遇到了一个类 如下--
class Abc extends Command implements SelfHandling, ShouldBeQueued
{
}
接口如下所示 -
interface SelfHandling {}
interface ShouldBeQueued {}
如果它没有任何方法,我会感到困惑,那么这些有什么用 接口?
【问题讨论】:
-
Interface with no methods 的可能重复项。他们称他们为“Marker interfaces”。
标签: php class laravel-5 interface multiple-inheritance