public static function hasChildComponentClass($class, $generator, $componentKey = null)
    {
        $constraints = array(
            'generator' => $generator,
            'componentKey' => $componentKey
        );
        $classes = self::getChildComponentClasses($class, $constraints);
        return count($classes) > 0;
    }
public static function hasChildComponentClass($class, $generator, $componentKey = null)
    {
        $constraints = array(
            'generator' => $generator,
            'componentKey' => $componentKey
        );
        $classes = self::getChildComponentClasses($class, $constraints);
        return count($classes) > 0;
    }
public static function hasChildComponentClass ( $ class , $ generator , $ componentKey = null ) { $ constraints = array ( 'generator' => $ generator , 'componentKey' => $ componentKey ) ; $ classes = self :: getChildComponentClasses ( $ class , $ constraints ) ; return count ( $ classes ) > 0 ; }
Return if a child component class with a given generator key and componentKey exists

if returnf false getChildComponentClass will give an exception.

@param string componentClass
@param string generator key
@param string component key
@param bool
Return if a child component class with a given generator key and componentKey exists