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

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

@return bool
Check to see if the Permission provided is the same as the BridgePermission object passed in