/** * Execute the methods defined in $meths against channel $chan, * return the results. */ private function runMethodSequence(Channel $chan, array $meths) { $r = array(); // Execute whatever methods are supplied. foreach ($meths as $iMeth) { $a = $this->xmlToArray($iMeth); $c = $a['a_class']; $r[] = $chan->invoke($chan->{$c}($a['a_method'], $a['a_args'])); } return $r; }
function getConsumeMethod(Channel $chan) { return $chan->basic('consume', $this->consumeParams); }