-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCallbackFactoryInterface.php
More file actions
36 lines (35 loc) · 1014 Bytes
/
CallbackFactoryInterface.php
File metadata and controls
36 lines (35 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
/**
* File defining Backend\Interfaces\CallbackFactoryInterface.
*
* PHP Version 5.3
*
* @category Backend
* @package Interfaces
* @author J Jurgens du Toit <jrgns@backend-php.net>
* @copyright 2011 - 2012 Jade IT (cc)
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link http://backend-php.net
*/
namespace Backend\Interfaces;
/**
* Class to create callbacks from strings and arrays.
*
* @category Backend
* @package Interfaces
* @author J Jurgens du Toit <jrgns@backend-php.net>
* @license http://www.opensource.org/licenses/mit-license.php MIT License
* @link http://backend-php.net
*/
interface CallbackFactoryInterface
{
/**
* Convert a string to a callback.
*
* @param string $string The string representation of the callback.
* @param array $arguments The arguments for the callback.
*
* @return CallbackInterface
*/
public function fromString($string, array $arguments = array());
}