src/cli/Database/Base/Channel.php 1 location
|
@@ 1044-1058 (lines=15) @@
|
| 1041 |
|
* |
| 1042 |
|
* @return int Hashcode |
| 1043 |
|
*/ |
| 1044 |
|
public function hashCode() |
| 1045 |
|
{ |
| 1046 |
|
$validPk = null !== $this->getId(); |
| 1047 |
|
|
| 1048 |
|
$validPrimaryKeyFKs = 0; |
| 1049 |
|
$primaryKeyFKs = []; |
| 1050 |
|
|
| 1051 |
|
if ($validPk) { |
| 1052 |
|
return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); |
| 1053 |
|
} elseif ($validPrimaryKeyFKs) { |
| 1054 |
|
return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); |
| 1055 |
|
} |
| 1056 |
|
|
| 1057 |
|
return spl_object_hash($this); |
| 1058 |
|
} |
| 1059 |
|
|
| 1060 |
|
/** |
| 1061 |
|
* Returns the primary key for this object (row). |
src/cli/Database/Base/Connection.php 1 location
|
@@ 1223-1237 (lines=15) @@
|
| 1220 |
|
* |
| 1221 |
|
* @return int Hashcode |
| 1222 |
|
*/ |
| 1223 |
|
public function hashCode() |
| 1224 |
|
{ |
| 1225 |
|
$validPk = null !== $this->getId(); |
| 1226 |
|
|
| 1227 |
|
$validPrimaryKeyFKs = 0; |
| 1228 |
|
$primaryKeyFKs = []; |
| 1229 |
|
|
| 1230 |
|
if ($validPk) { |
| 1231 |
|
return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); |
| 1232 |
|
} elseif ($validPrimaryKeyFKs) { |
| 1233 |
|
return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); |
| 1234 |
|
} |
| 1235 |
|
|
| 1236 |
|
return spl_object_hash($this); |
| 1237 |
|
} |
| 1238 |
|
|
| 1239 |
|
/** |
| 1240 |
|
* Returns the primary key for this object (row). |
src/cli/Database/Base/Instance.php 1 location
|
@@ 1020-1034 (lines=15) @@
|
| 1017 |
|
* |
| 1018 |
|
* @return int Hashcode |
| 1019 |
|
*/ |
| 1020 |
|
public function hashCode() |
| 1021 |
|
{ |
| 1022 |
|
$validPk = null !== $this->getName(); |
| 1023 |
|
|
| 1024 |
|
$validPrimaryKeyFKs = 0; |
| 1025 |
|
$primaryKeyFKs = []; |
| 1026 |
|
|
| 1027 |
|
if ($validPk) { |
| 1028 |
|
return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); |
| 1029 |
|
} elseif ($validPrimaryKeyFKs) { |
| 1030 |
|
return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); |
| 1031 |
|
} |
| 1032 |
|
|
| 1033 |
|
return spl_object_hash($this); |
| 1034 |
|
} |
| 1035 |
|
|
| 1036 |
|
/** |
| 1037 |
|
* Returns the primary key for this object (row). |
src/cli/Database/Base/Subscription.php 1 location
|
@@ 1451-1465 (lines=15) @@
|
| 1448 |
|
* |
| 1449 |
|
* @return int Hashcode |
| 1450 |
|
*/ |
| 1451 |
|
public function hashCode() |
| 1452 |
|
{ |
| 1453 |
|
$validPk = null !== $this->getId(); |
| 1454 |
|
|
| 1455 |
|
$validPrimaryKeyFKs = 0; |
| 1456 |
|
$primaryKeyFKs = []; |
| 1457 |
|
|
| 1458 |
|
if ($validPk) { |
| 1459 |
|
return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); |
| 1460 |
|
} elseif ($validPrimaryKeyFKs) { |
| 1461 |
|
return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); |
| 1462 |
|
} |
| 1463 |
|
|
| 1464 |
|
return spl_object_hash($this); |
| 1465 |
|
} |
| 1466 |
|
|
| 1467 |
|
/** |
| 1468 |
|
* Returns the primary key for this object (row). |
src/cli/Database/Base/User.php 1 location
|
@@ 1095-1109 (lines=15) @@
|
| 1092 |
|
* |
| 1093 |
|
* @return int Hashcode |
| 1094 |
|
*/ |
| 1095 |
|
public function hashCode() |
| 1096 |
|
{ |
| 1097 |
|
$validPk = null !== $this->getId(); |
| 1098 |
|
|
| 1099 |
|
$validPrimaryKeyFKs = 0; |
| 1100 |
|
$primaryKeyFKs = []; |
| 1101 |
|
|
| 1102 |
|
if ($validPk) { |
| 1103 |
|
return crc32(json_encode($this->getPrimaryKey(), JSON_UNESCAPED_UNICODE)); |
| 1104 |
|
} elseif ($validPrimaryKeyFKs) { |
| 1105 |
|
return crc32(json_encode($primaryKeyFKs, JSON_UNESCAPED_UNICODE)); |
| 1106 |
|
} |
| 1107 |
|
|
| 1108 |
|
return spl_object_hash($this); |
| 1109 |
|
} |
| 1110 |
|
|
| 1111 |
|
/** |
| 1112 |
|
* Returns the primary key for this object (row). |