<?

function a(){}

class A {
	function x(){}
	/**
	 * @return B
	 */

	function f() {

 	}

 	function g(){

 	}
	/**
	 * @var B
	 */
	var $e;
}

class B {
	/**
	 * @return AA
	 */
	function g(){}
	/**
	 * @var C
	 */
	var $b;
}

/**
 * @return C
 */
function w(){
}
class C {
	/**
	 * @return BB
	 */
	function h() {}
	function h2() {}
}

/**
 * @return C
 */
function aaa(){
	return new C();
}

class AA {
	/**
	 * @return A
	 */
	function fun(){
		return 5;
	}
}

class BB extends AA {
}


$w = new A();

//php 4

//$y = new A();
//$y = $w;
//$y = $w->e->b;
//$y = $w->e->b->h();
//$y = A::f();
//$y = w();

// php 5

//$y = w()->h();
//$y = $w->f()->g()->fun();


$y->



?>