Api‎ > ‎Util‎ > ‎Source‎ > ‎

Function

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.

$classRClassSourceThe parent class source object.
$commentstringFunction header comment.
$abstractboolWhether the function is abstract.
$staticboolWheter the function is static.
$accessstringWheter the function is public, protected or private.
$functionstringThe name of the function.
$inputsstring[]The array of raw inputs.
$bodyThebody of the function.
returnsRFunctionSource

string[] function getDependencies()

Returns combined explicit and implicite function dependencies within this class (e.g. used for unit testing).

returnsstring[]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).

returnsstring[]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).

returnsstring[]Array of function names in this class.
Comments