@@ -950,7 +950,7 @@ |
||
950 | 950 | } |
951 | 951 | /** |
952 | 952 | * Delete resource from a resource set. |
953 | - * @param ResourceSet|null $sourceResourceSet |
|
953 | + * @param ResourceSet $sourceResourceSet |
|
954 | 954 | * @param object $sourceEntityInstance |
955 | 955 | * |
956 | 956 | * return bool true if resources sucessfully deteled, otherwise false. |
@@ -839,7 +839,7 @@ discard block |
||
839 | 839 | ); |
840 | 840 | } |
841 | 841 | foreach ($targetProperty->getResourceType()->getKeyProperties() |
842 | - as $keyName => $resourceProperty) { |
|
842 | + as $keyName => $resourceProperty) { |
|
843 | 843 | try { |
844 | 844 | $keyValue = $targetResourceType->getPropertyValue($entityInstance, $keyName); |
845 | 845 | if (is_null($keyValue)) { |
@@ -896,7 +896,7 @@ discard block |
||
896 | 896 | } |
897 | 897 | |
898 | 898 | foreach ($keyDescriptor->getValidatedNamedValues() |
899 | - as $keyName => $valueDescription) { |
|
899 | + as $keyName => $valueDescription) { |
|
900 | 900 | try { |
901 | 901 | $keyValue = $resourceType->getPropertyValue($entityInstance, $keyName); |
902 | 902 | if (is_null($keyValue)) { |
@@ -923,16 +923,16 @@ discard block |
||
923 | 923 | } |
924 | 924 | |
925 | 925 | /** |
926 | - * Updates a resource |
|
927 | - * |
|
928 | - * @param ResourceSet $sourceResourceSet The entity set containing the source entity |
|
929 | - * @param object $sourceEntityInstance The source entity instance |
|
930 | - * @param KeyDescriptor $keyDescriptor The key identifying the entity to fetch |
|
931 | - * @param object $data The New data for the entity instance. |
|
932 | - * @param bool $shouldUpdate Should undefined values be updated or reset to default |
|
933 | - * |
|
934 | - * @return object|null The new resource value if it is assignable or throw exception for null. |
|
935 | - */ |
|
926 | + * Updates a resource |
|
927 | + * |
|
928 | + * @param ResourceSet $sourceResourceSet The entity set containing the source entity |
|
929 | + * @param object $sourceEntityInstance The source entity instance |
|
930 | + * @param KeyDescriptor $keyDescriptor The key identifying the entity to fetch |
|
931 | + * @param object $data The New data for the entity instance. |
|
932 | + * @param bool $shouldUpdate Should undefined values be updated or reset to default |
|
933 | + * |
|
934 | + * @return object|null The new resource value if it is assignable or throw exception for null. |
|
935 | + */ |
|
936 | 936 | public function updateResource( |
937 | 937 | ResourceSet $sourceResourceSet, |
938 | 938 | $sourceEntityInstance, |