File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
app/code/Magento/EavGraphQl Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
2
7
3
8
namespace Magento \EavGraphQl \Model \Resolver \Cache ;
4
9
11
16
class CustomAttributeMetadataIdentity implements IdentityInterface
12
17
{
13
18
/**
14
- * @inheirtdoc
19
+ * @inheritDoc
15
20
*/
16
21
public function getIdentities (array $ resolvedData ): array
17
22
{
Original file line number Diff line number Diff line change @@ -41,12 +41,10 @@ public function __construct(ManagerInterface $eventManager)
41
41
*
42
42
* @param Attribute $subject
43
43
* @param Attribute $result
44
+ *
44
45
* @return Attribute
45
46
*/
46
- public function afterSave (
47
- Attribute $ subject ,
48
- Attribute $ result
49
- ): Attribute
47
+ public function afterSave (Attribute $ subject , Attribute $ result ): Attribute
50
48
{
51
49
if (!$ subject ->isObjectNew ()) {
52
50
$ this ->triggerCacheClean ($ subject );
@@ -55,17 +53,14 @@ public function afterSave(
55
53
}
56
54
57
55
/**
58
- * Clean cache by relevant tags after entity is deleted and afterDelete
59
- * handler is executed.
56
+ * Clean cache by relevant tags after entity is deleted and afterDelete handler is executed.
60
57
*
61
58
* @param Attribute $subject
62
59
* @param Attribute $result
60
+ *
63
61
* @return Attribute
64
62
*/
65
- public function afterAfterDelete (
66
- Attribute $ subject ,
67
- Attribute $ result
68
- ) : Attribute
63
+ public function afterAfterDelete (Attribute $ subject , Attribute $ result ) : Attribute
69
64
{
70
65
$ this ->triggerCacheClean ($ subject );
71
66
return $ result ;
@@ -88,7 +83,7 @@ private function triggerCacheClean(Attribute $entity): void
88
83
}
89
84
90
85
/**
91
- * @inheirtdoc
86
+ * @inheritDoc
92
87
*/
93
88
public function getIdentities ()
94
89
{
You can’t perform that action at this time.
0 commit comments