library/QATools/QATools/PageObject/PropertyDecorator/DefaultPropertyDecorator.php
protected function classMatches($class_name, $descendant_of)
	{
		$class_name = ltrim($class_name, '\\');
		$descendant_of = ltrim($descendant_of, '\\');
		$match_with = array_merge(class_implements($class_name), class_parents($class_name));

		return $class_name == $descendant_of || in_array($descendant_of, $match_with);
	}
protected function classMatches($class_name, $descendant_of)
	{
		$class_name = ltrim($class_name, '\\');
		$descendant_of = ltrim($descendant_of, '\\');
		$match_with = array_merge(class_implements($class_name), class_parents($class_name));

		return $class_name == $descendant_of || in_array($descendant_of, $match_with);
	}
protected function classMatches ( $ class_name , $ descendant_of ) { $ class_name = ltrim ( $ class_name , '\\' ) ; $ descendant_of = ltrim ( $ descendant_of , '\\' ) ; $ match_with = array_merge ( class_implements ( $ class_name ) , class_parents ( $ class_name ) ) ; return $ class_name == $ descendant_of || in_array ( $ descendant_of , $ match_with ) ; }
Ensures that 2 given classes has a relation.

@param string $class_name    Class name to test.
@param string $descendant_of Required descendant class.

@return boolean
Ensures that 2 given classes has a relation .