1 | <?php |
||
4 | trait eTag |
||
5 | { |
||
6 | /** |
||
7 | * Message to show error when data service found eTag |
||
8 | * header for non-existing resource. |
||
9 | * |
||
10 | * @return string The message |
||
11 | */ |
||
12 | public static function eTagNotAllowedForNonExistingResource() |
||
16 | |||
17 | /** |
||
18 | * Message to show error when request contains eTag headers |
||
19 | * but targeted resource type does not have eTag properties defined. |
||
20 | * |
||
21 | * @return string The message |
||
22 | */ |
||
23 | public static function noETagPropertiesForType() |
||
27 | |||
28 | /** |
||
29 | * Message to show error when data service found the request eTag |
||
30 | * does not match with entry eTag. |
||
31 | * |
||
32 | * @return string The message |
||
33 | */ |
||
34 | public static function eTagValueDoesNotMatch() |
||
38 | |||
39 | /** |
||
40 | * Format a message to show error when request eTag header has been |
||
41 | * specified but eTag is not allowed for the targeted resource. |
||
42 | * |
||
43 | * @param string $uri Url |
||
44 | * |
||
45 | * @return string The formatted message |
||
46 | */ |
||
47 | public static function eTagCannotBeSpecified($uri) |
||
51 | } |
||
52 |