| @@ 302-308 (lines=7) @@ | ||
| 299 | return true; |
|
| 300 | } |
|
| 301 | ||
| 302 | if ($this->getStatus() === self::STATUS_REQUEST_DECLINED |
|
| 303 | || $this->getStatus() === self::STATUS_LINK_SETUP |
|
| 304 | ) { |
|
| 305 | if ($status === self::STATUS_LINK_REMOVE) { |
|
| 306 | return true; |
|
| 307 | } |
|
| 308 | } |
|
| 309 | ||
| 310 | if ($this->getStatus() === self::STATUS_LINK_REQUESTED) { |
|
| 311 | if ($status === self::STATUS_LINK_REMOVE) { |
|
| @@ 310-317 (lines=8) @@ | ||
| 307 | } |
|
| 308 | } |
|
| 309 | ||
| 310 | if ($this->getStatus() === self::STATUS_LINK_REQUESTED) { |
|
| 311 | if ($status === self::STATUS_LINK_REMOVE) { |
|
| 312 | return true; |
|
| 313 | } |
|
| 314 | if ($status === self::STATUS_LINK_UP) { |
|
| 315 | return true; |
|
| 316 | } |
|
| 317 | } |
|
| 318 | ||
| 319 | if ($this->getStatus() === self::STATUS_REQUEST_SENT |
|
| 320 | || $this->getStatus() === self::STATUS_LINK_UP |
|
| @@ 319-325 (lines=7) @@ | ||
| 316 | } |
|
| 317 | } |
|
| 318 | ||
| 319 | if ($this->getStatus() === self::STATUS_REQUEST_SENT |
|
| 320 | || $this->getStatus() === self::STATUS_LINK_UP |
|
| 321 | ) { |
|
| 322 | if ($status === self::STATUS_LINK_REMOVE) { |
|
| 323 | return true; |
|
| 324 | } |
|
| 325 | } |
|
| 326 | ||
| 327 | throw new FederatedCircleStatusUpdateException('The status could not be updated'); |
|
| 328 | } |
|