Fxmlrpc\MulticallClientInterface::multicall PHP Method

multicall() public method

Start sequence of multicall
public multicall ( ) : fxmlrpc\MulticallBuilderInterface
return fxmlrpc\MulticallBuilderInterface
    public function multicall();

Usage Example

 /** @dataProvider getClients */
 public function testSimpleMulticall(MulticallClientInterface $client)
 {
     $this->handlerInvoked = 0;
     $this->expected = array(array(0), array(1), array(2), array(3), array(4));
     $result = $client->multicall()->addCall('system.echo', array(0))->addCall('system.echo', array(1))->addCall('system.echo', array(2))->addCall('system.echo', array(3))->addCall('system.echo', array(4))->onSuccess(array($this, 'handler'))->execute();
     $this->assertSame($this->expected, $result);
     $this->assertSame(5, $this->handlerInvoked);
 }
MulticallClientInterface