PhpGenerator: ezcPhpGeneratorReturnData
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcPhpGeneratorReturnData
|
Holds meta-data about a function/method return data. [
source]
ezcPhpGeneratorReturnData stores the name of the variable that should have the return value of a function/method call assigned to it. It also stores the type of assignment to use when assigning the return value to the specified variable.
Parents
ezcBaseStruct
|
--ezcPhpGeneratorReturnData
Member Variables
|
public int |
$type
The type of the assignment to use. The default is a normal '=' assignment. |
|
public string |
$variable
The name of the variable gets the method return value assigned to it. |
Method Summary
|
public ezcPhpGeneratorReturnData |
__construct(
[$variable = ''], [$type = ezcPhpGenerator::ASSIGN_NORMAL] )
Constructs a new PhpGeneratorReturnData. |
|
public static ezcPhpGeneratoReturnData |
__set_state(
$array )
Returns a new instance of this class with the data specified by $array. |
Methods
__construct
ezcPhpGeneratorReturnData __construct(
[string
$variable = ''], [int
$type = ezcPhpGenerator::ASSIGN_NORMAL] )
Constructs a new PhpGeneratorReturnData.
Parameters
| Name |
Type |
Description |
$variable |
string |
The name of the variable that should have the return value of the function/method call assigned to it. |
$type |
int |
One of ezcPhpGenerator:: ASSIGN_NORMAL, ASSIGN_APPEND_TEXT, ASSIGN_ADD, ASSIGN_SUBTRACT or ASSIGN_ARRAY_APPEND. |
__set_state
ezcPhpGeneratoReturnData __set_state(
$array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.
Parameters
| Name |
Type |
Description |
$array |
array(string=>mixed) |
|
Last updated: Mon, 21 Dec 2009