public function hasMethodCall($method)
    {
        foreach ($this->calls as $call) {
            if ($call[0] === $method) {
                return true;
            }
        }

        return false;
    }
public function hasMethodCall($method)
    {
        foreach ($this->calls as $call) {
            if ($call[0] === $method) {
                return true;
            }
        }

        return false;
    }
public function hasMethodCall ( $ method ) { foreach ( $ this -> calls as $ call ) { if ( $ call [ 0 ] === $ method ) { return true ; } } return false ; }
Check if the current definition has a given method to call after service initialization.

@param string $method The method name to search for

@return bool
Check if the current definition has a given method to call after service initialization .