protected function addElementToCounter($classCounters, $element)
    {
        if (!isset($classCounters[get_class($element)])) {
            $classCounters[get_class($element)] = 0;
        }
        $classCounters[get_class($element)]++;

        return $classCounters;
    }
protected function addElementToCounter($classCounters, $element)
    {
        if (!isset($classCounters[get_class($element)])) {
            $classCounters[get_class($element)] = 0;
        }
        $classCounters[get_class($element)]++;

        return $classCounters;
    }
protected function addElementToCounter ( $ classCounters , $ element ) { if ( ! isset ( $ classCounters [ get_class ( $ element ) ] ) ) { $ classCounters [ get_class ( $ element ) ] = 0 ; } $ classCounters [ get_class ( $ element ) ] ++ ; return $ classCounters ; }
Increments the counter for element's class in the class counters.

@param array              $classCounters
@param DescriptorAbstract $element

@return array
Increments the counter for element s class in the class counters .