| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class SyncObjectBrokenException extends GSyncException { |
||
| 13 | protected $defaultLogLevel = LOGLEVEL_WARN; |
||
| 14 | private $syncObject; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Returns the SyncObject which caused this Exception (if set). |
||
| 18 | * |
||
| 19 | * @return SyncObject |
||
| 20 | */ |
||
| 21 | public function GetSyncObject() { |
||
| 22 | return $this->syncObject ?? false; |
||
|
|
|||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Sets the SyncObject which caused the exception so it can be later retrieved. |
||
| 27 | * |
||
| 28 | * @param SyncObject $syncobject |
||
| 29 | * |
||
| 30 | * @return bool |
||
| 31 | */ |
||
| 32 | public function SetSyncObject($syncobject) { |
||
| 36 | } |
||
| 37 | } |
||
| 38 |
If the returned type also contains false, it is an indicator that maybe an error condition leading to the specific return statement remains unhandled.