Core/src/Iam/PolicyBuilder.php
public function setBindings(array $bindings = [])
    {
        $this->bindings = [];
        foreach ($bindings as $binding) {
            $this->addBinding($binding['role'], $binding['members']);
        }

        return $this;
    }
public function setBindings(array $bindings = [])
    {
        $this->bindings = [];
        foreach ($bindings as $binding) {
            $this->addBinding($binding['role'], $binding['members']);
        }

        return $this;
    }
public function setBindings ( array $ bindings = [ ] ) { $ this -> bindings = [ ] ; foreach ( $ bindings as $ binding ) { $ this -> addBinding ( $ binding [ 'role' ] , $ binding [ 'members' ] ) ; } return $ this ; }
Override all stored bindings on the policy.

Example:
```
$builder->setBindings([
[
'role' => 'roles/admin',
'members' => [
'user:admin@domain.com'
]
]
]);
```

@param  array $bindings [optional] An array of bindings
@return PolicyBuilder
@throws InvalidArgumentException
Override all stored bindings on the policy .