<?php
/** @see FLY_Func_Function */
require_once 'FLY/Func/Function.php';
/** @see FLY_Func_Method */
require_once 'FLY/Func/Method.php';
/**
* This class repository can be used to register and call functions.
*
* @package FLY
* @author Yves Feupi Lepatio
*/
class FLY_Func
{
private function __construct()
{}
private function __clone()
{}
/**
* FromFunction()
*
* @see FLY_Func_Function::__construct()
*/
public static function FromFunction($functionName)
{
return new FLY_Func_Function($functionName);
}
/**
* FromMethod()
*
* @see FLY_Func_Method::__construct()
*/
public static function FromMethod($className, $methodName)
{
return new FLY_Func_Method($className, $methodName);
}
}