Class RFunctionSource
The function properties from the source.
Vars
var RClassSource $class
The parent class source object.
var string $comment
Function header comment.
var bool $abstract
Whether the function is abstract.
var bool $static
Wheter the function is static.
var string $access
Wheter the function is public, protected or private.
var string $function
The name of the function.
var string[] $inputs
The array of raw inputs.
var The $body
body of the function.
Functions
RFunctionSource function __construct($class, $comment, $abstract, $static, $access, $function, $inputs, $body)
Constructor.
$class | RClassSource | The parent class source object. |
$comment | string | Function header comment. |
$abstract | bool | Whether the function is abstract. |
$static | bool | Wheter the function is static. |
$access | string | Wheter the function is public, protected or private. |
$function | string | The name of the function. |
$inputs | string[] | The array of raw inputs. |
$body | The | body of the function. |
returns | RFunctionSource | |
string[] function getDependencies()
Returns combined explicit and implicite function dependencies within this class (e.g. used for unit testing).
returns | string[] | Array of function names in this class. |
string[] function getExplicitDependencies()
Returns explicit function dependencies within this class that are listed as @dependencies in the comment header (e.g. used for unit testing).
returns | string[] | Array of function names in this class. |
string[] function getImplicitDependencies()
Returns implicit function dependencies within this class that are obtained from the function body (e.g. used for unit testing).
returns | string[] | Array of function names in this class. |
|