Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 0 |
1 | <?php |
||
10 | class ShardingException extends DBALException |
||
11 | { |
||
12 | /** |
||
13 | * @return \Doctrine\DBAL\Sharding\ShardingException |
||
14 | */ |
||
15 | public static function notImplemented() |
||
16 | { |
||
17 | return new self('This functionality is not implemented with this sharding provider.', 1331557937); |
||
18 | } |
||
19 | |||
20 | /** |
||
21 | * @return \Doctrine\DBAL\Sharding\ShardingException |
||
22 | */ |
||
23 | 97 | public static function missingDefaultFederationName() |
|
24 | { |
||
25 | 97 | return new self('SQLAzure requires a federation name to be set during sharding configuration.', 1332141280); |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @return \Doctrine\DBAL\Sharding\ShardingException |
||
30 | */ |
||
31 | 73 | public static function missingDefaultDistributionKey() |
|
32 | { |
||
33 | 73 | return new self('SQLAzure requires a distribution key to be set during sharding configuration.', 1332141329); |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return \Doctrine\DBAL\Sharding\ShardingException |
||
38 | */ |
||
39 | 50 | public static function activeTransaction() |
|
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return \Doctrine\DBAL\Sharding\ShardingException |
||
46 | */ |
||
47 | public static function noShardDistributionValue() |
||
48 | { |
||
49 | return new self('You have to specify a string or integer as shard distribution value.', 1332142103); |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return \Doctrine\DBAL\Sharding\ShardingException |
||
54 | */ |
||
55 | 73 | public static function missingDistributionType() |
|
58 | } |
||
59 | } |
||
60 |