File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
app/code/Magento/GraphQl/Model/Query/Resolver
lib/internal/Magento/Framework Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1616 * @deprecated 100.3.3
1717 * @see \Magento\GraphQl\Model\Query\Context
1818 */
19- class Context extends \Magento \Framework \Model \AbstractExtensibleModel implements ContextInterface,
19+ class Context extends \Magento \Framework \Model \AbstractExtensibleModel implements
20+ ContextInterface,
2021 ResetAfterRequestInterface
2122{
2223 /**#@+
Original file line number Diff line number Diff line change @@ -129,6 +129,13 @@ public function setObjectManager(ObjectManagerInterface $objectManager) : void
129129 $ this ->objectManager = $ objectManager ;
130130 }
131131
132+ /**
133+ * Checks if the object is in the class list uses inheritance (via instanceof)
134+ *
135+ * @param object $object
136+ * @return bool
137+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
138+ */
132139 public function isObjectInClassList (object $ object )
133140 {
134141 foreach ($ this ->classList as $ key => $ value ) {
@@ -145,6 +152,7 @@ public function isObjectInClassList(object $object)
145152 * @param object $instance
146153 * @return void
147154 * @throws \ReflectionException
155+ * @SuppressWarnings(PHPMD.UnusedLocalVariable)
148156 */
149157 private function resetStateWithReflection (object $ instance )
150158 {
@@ -158,6 +166,14 @@ private function resetStateWithReflection(object $instance)
158166 }
159167 }
160168 }
169+
170+ /**
171+ * State reset using reflection using specific className
172+ *
173+ * @param object $instance
174+ * @param string $className
175+ * @return void
176+ */
161177 private function resetStateWithReflectionByClassName (object $ instance , string $ className )
162178 {
163179 $ classResetValues = $ this ->classList [$ className ] ?? [];
Original file line number Diff line number Diff line change 77
88use Magento \Framework \ObjectManager \ResetAfterRequestInterface ;
99
10- class QueryParamsResolver extends \Magento \Framework \DataObject implements QueryParamsResolverInterface,
10+ class QueryParamsResolver extends \Magento \Framework \DataObject implements
11+ QueryParamsResolverInterface,
1112 ResetAfterRequestInterface
1213{
1314 /**
You can’t perform that action at this time.
0 commit comments