| <?php 
/**
 * just for testing/demonstrating ComplexityAnalyzer
 * in conjunction with DummyClassTest.php
 */ 
class DummyClass {
	// method src with 1 paren
	public function levelOneA(){
		return 'levelOneAReturn';
	}
	
	// method src with 2 parens
	public function levelOneB(){
		$dummy = strpos('whatever', 'w');
		return 'levelOneBReturn';
	}
	// method src with 2 parens
	// and inclusion of levelOneA
	public function levelTwo(){
		$a = $this->levelOneA();
		return 'levelTwo + '.$a;
	}
	// method src with 2 parens
	// and inclusion of levelTwo
	public function levelThree(){
		$a = $this->levelTwo();
		return 'levelThree + '.$a;
	}
}
?>
 |