lib/Elastica/Snapshot.php
public function restoreSnapshot($repository, $name, $options = [], $waitForCompletion = false)
    {
        $endpoint = new Restore();
        $endpoint->setRepository($repository);
        $endpoint->setSnapshot($name);
        $endpoint->setBody($options);
        $endpoint->setParams(['wait_for_completion' => $waitForCompletion]);

        return $this->_client->requestEndpoint($endpoint);
    }
public function restoreSnapshot($repository, $name, $options = [], $waitForCompletion = false)
    {
        $endpoint = new Restore();
        $endpoint->setRepository($repository);
        $endpoint->setSnapshot($name);
        $endpoint->setBody($options);
        $endpoint->setParams(['wait_for_completion' => $waitForCompletion]);

        return $this->_client->requestEndpoint($endpoint);
    }
public function restoreSnapshot ( $ repository , $ name , $ options = [ ] , $ waitForCompletion = false ) { $ endpoint = new Restore ( ) ; $ endpoint -> setRepository ( $ repository ) ; $ endpoint -> setSnapshot ( $ name ) ; $ endpoint -> setBody ( $ options ) ; $ endpoint -> setParams ( [ 'wait_for_completion' => $ waitForCompletion ] ) ; return $ this -> _client -> requestEndpoint ( $ endpoint ) ; }
Restore a snapshot.

@param string $repository        the name of the repository
@param string $name              the name of the snapshot
@param array  $options           options for the restore operation
@param bool   $waitForCompletion if true, the request will not return until the restore operation is complete

@return Response
Restore a snapshot .