test1.php File Reference
Go to the source code of this file.
Enumeration Type Documentation
Variable Documentation
| $objSimpleXml = simplexml_load_string( CodeInstrumentationReceiver::getInstance()->getXmlSequence()->createXml() ) |
| $objTest = new fatorial( 2 ) |
Initial value:
'
class fatorial
{
protected $n;
public function __construct( $n )
{
$this->n = $n;
}
public function calc()
{
if ($this->n < 2)
{
return 1;
}
else
{
$objFat = new Fatorial( $this->n - 1 );
return $this->n * $objFat->calc();
}
}
};
'
Definition at line 5 of file test1.php.
| $strNewCode = $oReflectionCode->getCode() |