1 | <?php |
||
4 | trait metadataAssociationType |
||
5 | { |
||
6 | /** |
||
7 | * A message to show error when |
||
8 | * IMetadataProvider::GetResourceAssociationSet() returns different |
||
9 | * AssociationSet when called with 'ResourceAssociationSetEnd' instances that |
||
10 | * are expected to the ends of same association set. |
||
11 | * |
||
12 | * @return string The error message |
||
13 | */ |
||
14 | public static function metadataAssociationTypeSetBidirectionalAssociationMustReturnSameResourceAssociationSetFromBothEnd() |
||
18 | |||
19 | /** |
||
20 | * Format a message to show error when multiple ResourceAssociationSets |
||
21 | * have a ResourceAssociationSetEnd referring to the |
||
22 | * same EntitySet through the same AssociationType. |
||
23 | * |
||
24 | * @param string $resourceSet1Name Name of the first association set |
||
25 | * @param string $resourceSet2Name Name of the second association set |
||
26 | * @param string $entitySetName Name of the entity set |
||
27 | * |
||
28 | * @return string The formatted message |
||
29 | */ |
||
30 | public static function metadataAssociationTypeSetMultipleAssociationSetsForTheSameAssociationTypeMustNotReferToSameEndSets($resourceSet1Name, $resourceSet2Name, $entitySetName) |
||
34 | |||
35 | /** |
||
36 | * Format a message to show error when IDSMP::getDerivedTypes returns a |
||
37 | * type which is not null or array of ResourceType. |
||
38 | * |
||
39 | * @param string $resourceTypeName Resource type name |
||
40 | * |
||
41 | * @return string The formatted message |
||
42 | */ |
||
43 | public static function metadataAssociationTypeSetInvalidGetDerivedTypesReturnType($resourceTypeName) |
||
47 | } |
||
48 |