rumd3x/notifier-interface

Standard interface for objects that send notifications.

1.0 2019-02-13 23:50 UTC

This package is auto-updated.

Last update: 2024-04-14 03:06:54 UTC


README

Standard interface for objects that send notifications.

Install

composer require rumd3x/notifier-interface

Usage

<?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);