src/Manager.php
public function setRole($names, $inherit = null)
    {
        foreach ((array) $names as $name) {
            $this->roles[$name] = new SimpleRole($name, $inherit);
        }
    }
public function setRole($names, $inherit = null)
    {
        foreach ((array) $names as $name) {
            $this->roles[$name] = new SimpleRole($name, $inherit);
        }
    }
public function setRole ( $ names , $ inherit = null ) { foreach ( ( array ) $ names as $ name ) { $ this -> roles [ $ name ] = new SimpleRole ( $ name , $ inherit ) ; } }
Add one role to the lock instance

@param string|array $names
@param string $inherit
Add one role to the lock instance