Method 'x' of 'y' is not accessible

Sample code:

class y {
	private function x() {
		// ...
	}
	//...
}
//...
$obj = new y();
$obj->x();                      // Method 'x' of 'y' is not accessible
// ...

You tried to access some non-public method of class 'y'.