Library/Passes/CallGathererPass.php
public function getNumberOfMethodCalls($className, $methodName)
    {
        if (isset($this->methodCalls[$className][$methodName])) {
            return $this->methodCalls[$className][$methodName];
        }

        return 0;
    }
public function getNumberOfMethodCalls($className, $methodName)
    {
        if (isset($this->methodCalls[$className][$methodName])) {
            return $this->methodCalls[$className][$methodName];
        }

        return 0;
    }
public function getNumberOfMethodCalls ( $ className , $ methodName ) { if ( isset ( $ this -> methodCalls [ $ className ] [ $ methodName ] ) ) { return $ this -> methodCalls [ $ className ] [ $ methodName ] ; } return 0 ; }
Returns the number of calls a function had.

@param string $className
@param string $methodName

@return int
Returns the number of calls a function had .