src/Place/CannotMarkPlaceAsCanonical.php 1 location
|
@@ 7-18 (lines=12) @@
|
| 4 |
|
|
| 5 |
|
use Exception; |
| 6 |
|
|
| 7 |
|
class CannotMarkPlaceAsCanonical extends Exception |
| 8 |
|
{ |
| 9 |
|
public static function becauseItIsDeleted(string $placeId): self |
| 10 |
|
{ |
| 11 |
|
return new static('Cannot mark place ' . $placeId . ' as canonical because it is deleted'); |
| 12 |
|
} |
| 13 |
|
|
| 14 |
|
public static function becauseItIsAlreadyADuplicate(string $placeId): self |
| 15 |
|
{ |
| 16 |
|
return new static('Cannot mark place ' . $placeId . ' as canonical because it is a duplicate'); |
| 17 |
|
} |
| 18 |
|
} |
| 19 |
|
|
src/Place/CannotMarkPlaceAsDuplicate.php 1 location
|
@@ 7-18 (lines=12) @@
|
| 4 |
|
|
| 5 |
|
use Exception; |
| 6 |
|
|
| 7 |
|
class CannotMarkPlaceAsDuplicate extends Exception |
| 8 |
|
{ |
| 9 |
|
public static function becauseItIsDeleted(string $placeId): self |
| 10 |
|
{ |
| 11 |
|
return new static('Cannot mark place ' . $placeId . ' as duplicate because it is deleted'); |
| 12 |
|
} |
| 13 |
|
|
| 14 |
|
public static function becauseItIsAlreadyADuplicate(string $placeId): self |
| 15 |
|
{ |
| 16 |
|
return new static('Cannot mark place ' . $placeId . ' as duplicate because it is already a duplicate'); |
| 17 |
|
} |
| 18 |
|
} |
| 19 |
|
|