Method | Description | |
---|---|---|
__construct ( |
Construct a new mock generator. | |
generate ( |
Generate a mock class and return the source code. | |
generateClassName ( |
Generate a mock class name. | |
instance ( ) : |
Get the static instance of this generator. |
Method | Description | |
---|---|---|
generateCallParentMethods ( $definition ) | ||
generateConstants ( $definition ) | ||
generateHeader ( $definition, $className ) | ||
generateMagicCall ( $definition ) | ||
generateMagicCallStatic ( $definition ) | ||
generateMethods ( $methods ) | ||
generateProperties ( $definition ) | ||
generateStructors ( $definition ) |
public __construct ( |
||
$labelSequencer | The label sequencer to use. | |
$signatureInspector | The function signature inspector to use. | |
$featureDetector | The feature detector to use. |
public generateClassName ( |
||
$definition | The definition. | |
return | string | The mock class name. |
public static instance ( ) : |
||
return | The static generator. |