GearmanTask
PHP Manual

GearmanTask::function

(PECL gearman >= 0.5.0)

GearmanTask::functionGet associated function name

Description

public string GearmanTask::function ( void )

Returns the name of the function this task is associated with, i.e., the function the Gearman worker calls.

Parameters

This function has no parameters.

Return Values

A function name.


GearmanTask
PHP Manual