Blame view
sources/lib/private/hooks/emitter.php
727 Bytes
|
03e52840d
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<?php
/**
* Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
* This file is licensed under the Affero General Public License version 3 or
* later.
* See the COPYING-README file.
*/
namespace OC\Hooks;
/**
* Class Emitter
*
* interface for all classes that are able to emit events
*
* @package OC\Hooks
*/
interface Emitter {
/**
* @param string $scope
* @param string $method
* @param callable $callback
|
|
6d9380f96
|
23 |
* @return void |
|
03e52840d
|
24 25 26 27 28 29 30 |
*/ public function listen($scope, $method, $callback); /** * @param string $scope optional * @param string $method optional * @param callable $callback optional |
|
6d9380f96
|
31 |
* @return void |
|
03e52840d
|
32 33 34 |
*/ public function removeListener($scope = null, $method = null, $callback = null); } |