Spanner/src/V1/CommitRequest.php
public function setMutations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Spanner\V1\Mutation::class);
        $this->mutations = $arr;

        return $this;
    }
public function setMutations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Spanner\V1\Mutation::class);
        $this->mutations = $arr;

        return $this;
    }
public function setMutations ( $ var ) { $ arr = GPBUtil :: checkRepeatedField ( $ var , \ Google \ Protobuf \ Internal \ GPBType :: MESSAGE , \ Google \ Cloud \ Spanner \ V1 \ Mutation :: class ) ; $ this -> mutations = $ arr ; return $ this ; }
The mutations to be executed when this transaction commits. All
mutations are applied atomically, in the order they appear in
this list.

Generated from protobuf field <code>repeated .google.spanner.v1.Mutation mutations = 4;</code>
@param \Google\Cloud\Spanner\V1\Mutation[]|\Google\Protobuf\Internal\RepeatedField $var
@return $this
The mutations to be executed when this transaction commits . All mutations are applied atomically in the order they appear in this list .