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);
	}