src/Searsaw/Drawbridge/models/BridgeUser.php
public function addSingleRole($role)
    {
        if (is_string($role))
            return $this->addRoleByName($role);
        elseif (is_numeric($role))
            return $this->addRoleById($role);
        elseif ($role instanceof BridgeRole)
            return $this->addRoleByObject($role);
        else
            throw new \InvalidArgumentException('Role must be a name, ID, or Role object.');
    }
public function addSingleRole($role)
    {
        if (is_string($role))
            return $this->addRoleByName($role);
        elseif (is_numeric($role))
            return $this->addRoleById($role);
        elseif ($role instanceof BridgeRole)
            return $this->addRoleByObject($role);
        else
            throw new \InvalidArgumentException('Role must be a name, ID, or Role object.');
    }
public function addSingleRole ( $ role ) { if ( is_string ( $ role ) ) return $ this -> addRoleByName ( $ role ) ; elseif ( is_numeric ( $ role ) ) return $ this -> addRoleById ( $ role ) ; elseif ( $ role instanceof BridgeRole ) return $ this -> addRoleByObject ( $ role ) ; else throw new \ InvalidArgumentException ( 'Role must be a name, ID, or Role object.' ) ; }
Add a single role. The argument is a string, integer, or instance of BridgeRole

@param $role string|integer|\Searsaw\Drawbridge\Models\BridgeRole

@throws \InvalidArgumentException

@return \Searsaw\Drawbridge\Models\BridgeRole
Add a single role . The argument is a string integer or instance of BridgeRole