apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: math

Source Location: /PHP_FunctionCallTracer-1.0.0/docs/examples/intermediate/package.php

Class Overview


this is an example of a package


Methods


Inherited Variables

Inherited Methods


Class Details

[line 8]
this is an example of a package

calls to the tracer are added wherever there is a need to trace a function call these calls can be left in the package, they are executed only if the tracer is loaded



[ Top ]


Method Detail

prod   [line 17]

void prod( $x, $y)

tracing the arguments and the returned parameter

processing all return returned variables (empty means all)

note that traceReturn() calls traceArguments() by default which is fine here since this method does call other methods to trace

  • Access: public

Parameters:

   $x   — 
   $y   — 

[ Top ]

square   [line 41]

void square( $x)

tracing the arguments and the returned parameter

processing all arguments (true means all)

traceArguments() and/or processVariables() must be called here since this method calls other methods that may be traced, so that traced calls are displayed in the right order

note that processVariables() calls traceArguments() by default

  • Access: public

Parameters:

   $x   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:09:41 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.