public function create($funcName) {
		
		$dirname = dirname(__FILE__).'/functions';
		$filename = "$dirname/Function_$funcName.php";
		if( !file_exists($filename) ) {
					return null;
		}


		require_once "$dirname/Function_$funcName.php";

		$funcClassName = '\\figdice\\classes\\functions\\Function_'.$funcName;

		$reflection = new \ReflectionClass($funcClassName);
		/** @var FigFunction $function */
		$function = $reflection->newInstance();
		return $function;
	}
public function create($funcName) {
		
		$dirname = dirname(__FILE__).'/functions';
		$filename = "$dirname/Function_$funcName.php";
		if( !file_exists($filename) ) {
					return null;
		}


		require_once "$dirname/Function_$funcName.php";

		$funcClassName = '\\figdice\\classes\\functions\\Function_'.$funcName;

		$reflection = new \ReflectionClass($funcClassName);
		/** @var FigFunction $function */
		$function = $reflection->newInstance();
		return $function;
	}
public function create ( $ funcName ) { $ dirname = dirname ( __FILE__ ) . '/functions' ; $ filename = "$dirname/Function_$funcName.php" ; if ( ! file_exists ( $ filename ) ) { return null ; } require_once "$dirname/Function_$funcName.php" ; $ funcClassName = '\\figdice\\classes\\functions\\Function_' . $ funcName ; $ reflection = new \ ReflectionClass ( $ funcClassName ) ; /** @var FigFunction $function */ $ function = $ reflection -> newInstance ( ) ; return $ function ; }
Returns an instance of the Function class that
handles the requested function.

@param string $funcName
@return FigFunction|null
Returns an instance of the Function class that handles the requested function .