src/Searsaw/Drawbridge/models/BridgeUser.php
public function checkRoleByObject(BridgeRole $check, BridgeRole $has)
    {
        return $this->checkRoleById($check->id, $has);
    }
public function checkRoleByObject(BridgeRole $check, BridgeRole $has)
    {
        return $this->checkRoleById($check->id, $has);
    }
public function checkRoleByObject ( BridgeRole $ check , BridgeRole $ has ) { return $ this -> checkRoleById ( $ check -> id , $ has ) ; }
Check to see if the Role provided is the same as the
BridgeRole object passed in

@param BridgeRole $check The object to check
@param BridgeRole $has   The object to check against

@return bool
Check to see if the Role provided is the same as the BridgeRole object passed in