rumd3x / notifier-interface
发送通知的对象的标准接口。
1.0
2019-02-13 23:50 UTC
Requires
- php: >=7.0
This package is auto-updated.
Last update: 2024-09-14 04:01:16 UTC
README
发送通知的对象的标准接口。
安装
composer require rumd3x/notifier-interface
用法
<?php class MyNotification implements Rumd3x\Standards\NotificationInterface { // Implementation } class MyNotifier implements Rumd3x\Standards\NotifierInterface { public function notify(Rumd3x\Standards\NotificationInterface $notification) { // Implementation } } $notification = new MyNotification(); $notifier = new MyNotifier(); $notifier->notify($notification);