PHP Classes

File: Listener.php

Recommend this page to a friend!
  Classes of Yelson Ramirez Grönroos   PHP Event Dispatcher Class   Listener.php   Download  
File: Listener.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Event Dispatcher Class
Call registered handlers when an event triggers
Author: By
Last change:
Date: 6 years ago
Size: 350 bytes
 

Contents

Class file image Download
<?php
namespace App;

/**
 * Abstract Listener
 */
abstract class Listener
{
   
/**
     * Forces the user to include the method hanndle(@param Event $event) to avoid complications, note: this class has to be extended in case of
     * the use of listeners.
     *
     * @param Event $event
     * @return void
     */
   
abstract public function handle(Event $event);
}