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