public function setMethodCalls(array $calls = array())
    {
        $this->calls = array();
        foreach ($calls as $call) {
            $this->addMethodCall($call[0], $call[1]);
        }

        return $this;
    }
public function setMethodCalls(array $calls = array())
    {
        $this->calls = array();
        foreach ($calls as $call) {
            $this->addMethodCall($call[0], $call[1]);
        }

        return $this;
    }
public function setMethodCalls ( array $ calls = array ( ) ) { $ this -> calls = array ( ) ; foreach ( $ calls as $ call ) { $ this -> addMethodCall ( $ call [ 0 ] , $ call [ 1 ] ) ; } return $ this ; }
Sets the methods to call after service initialization.

@return $this
Sets the methods to call after service initialization .