<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Sets new callback for the watcher</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="evwatcher.keepalive.html">EvWatcher::keepalive</a></div> <div class="next" style="text-align: right; float: right;"><a href="evwatcher.start.html">EvWatcher::start</a></div> <div class="up"><a href="class.evwatcher.html">EvWatcher</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="evwatcher.setcallback" class="refentry"> <div class="refnamediv"> <h1 class="refname">EvWatcher::setCallback</h1> <p class="verinfo">(PECL ev >= 0.2.0)</p><p class="refpurpose"><span class="refname">EvWatcher::setCallback</span> — <span class="dc-title">Sets new callback for the watcher</span></p> </div> <div class="refsect1 description" id="refsect1-evwatcher.setcallback-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type"><span class="type void">void</span></span> <span class="methodname"><strong>EvWatcher::setCallback</strong></span> ( <span class="methodparam"> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> <code class="parameter">$callback</code> </span> )</div> <p class="para rdfs-comment"> Sets new callback for the watcher </p> </div> <div class="refsect1 parameters" id="refsect1-evwatcher.setcallback-parameters"> <h3 class="title">Parameters</h3> <dl> <dt> <span class="term"> <em><code class="parameter">callback</code></em> </span> <dd> <p class="para"> See <a href="ev.watcher-callbacks.html" class="link">Watcher callbacks</a> . </p> </dd> </dt> </dl> </div> <div class="refsect1 returnvalues" id="refsect1-evwatcher.setcallback-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="evwatcher.keepalive.html">EvWatcher::keepalive</a></div> <div class="next" style="text-align: right; float: right;"><a href="evwatcher.start.html">EvWatcher::start</a></div> <div class="up"><a href="class.evwatcher.html">EvWatcher</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>