1 | <?php |
||
4 | trait resourceAssociationSet |
||
5 | { |
||
6 | /** |
||
7 | * Format a message to show error when target resource property |
||
8 | * argument is not null or instance of ResourceProperty. |
||
9 | * |
||
10 | * @param string $argumentName The name of the target resource property argument |
||
11 | * |
||
12 | * @return string The formatted message |
||
13 | */ |
||
14 | public static function resourceAssociationSetPropertyMustBeNullOrInstanceofResourceProperty($argumentName) |
||
18 | |||
19 | /** |
||
20 | * Format a message when a property is used as |
||
21 | * navigation property of a resource type which is actually not. |
||
22 | * |
||
23 | * @param string $propertyName Property |
||
24 | * @param string $resourceTypeName Resource type |
||
25 | * |
||
26 | * @return string The formatted message |
||
27 | */ |
||
28 | public static function resourceAssociationSetEndPropertyMustBeNavigationProperty($propertyName, $resourceTypeName) |
||
32 | |||
33 | /** |
||
34 | * Format a message for showing the error when a resource type is |
||
35 | * not assignable to resource set. |
||
36 | * |
||
37 | * @param string $resourceTypeName Resource type |
||
38 | * @param string $resourceSetName Resource set name |
||
39 | * |
||
40 | * @return string The formatted message |
||
41 | */ |
||
42 | public static function resourceAssociationSetEndResourceTypeMustBeAssignableToResourceSet($resourceTypeName, $resourceSetName) |
||
46 | |||
47 | /** |
||
48 | * Format a message for showing the error when trying to |
||
49 | * create an association set with both null resource property. |
||
50 | * |
||
51 | * @return string The formatted message |
||
52 | */ |
||
53 | public static function resourceAssociationSetResourcePropertyCannotBeBothNull() |
||
57 | |||
58 | /** |
||
59 | * Format a message for showing the error when trying to |
||
60 | * create a self referencing bidirectional association. |
||
61 | * |
||
62 | * @return string The formatted message |
||
63 | */ |
||
64 | public static function resourceAssociationSetSelfReferencingAssociationCannotBeBiDirectional() |
||
68 | } |
||
69 |