Google\Cloud\Tests\Snippets\Datastore\DatastoreClientStub::setConnection PHP Method

setConnection() public method

public setConnection ( $connection )
    public function setConnection($connection)
    {
        $this->connection = $connection;
        $this->operation = new Operation($this->connection, 'my-awesome-project', '', new EntityMapper('my-awesome-project', true, false));
    }
DatastoreClientStub