Skip to content

Commit 1c01fda

Browse files
committed
B2B-2658: Implement GraphQL Resolver Cache for Customer query
- updated interface doc
1 parent 1c36df1 commit 1c01fda

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

app/code/Magento/GraphQlResolverCache/Model/Resolver/Result/CacheKey/GenericFactorProviderInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,12 @@ public function getFactorName(): string;
2424
/**
2525
* Returns the runtime value that should be used as factor.
2626
*
27+
* Throws an Exception if factor value cannot be resolved.
28+
*
2729
* @param ContextInterface $context
30+
*
31+
* @throws \Exception
32+
*
2833
* @return string
2934
*/
3035
public function getFactorValue(ContextInterface $context): string;

app/code/Magento/GraphQlResolverCache/Model/Resolver/Result/CacheKey/ParentValueFactorProviderInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ public function isRequiredOrigData(): bool;
3737
/**
3838
* Returns the runtime value that should be used as factor.
3939
*
40+
* Throws an Exception if factor value cannot be resolved.
41+
*
4042
* @param ContextInterface $context
4143
* @param array $parentValue
44+
*
45+
* @throws \Exception
46+
*
4247
* @return string
4348
*/
4449
public function getFactorValue(ContextInterface $context, array $parentValue): string;

0 commit comments

Comments
 (0)