5
5
*/
6
6
namespace Magento \Eav \Model \Entity ;
7
7
8
- use Magento \Eav \Model \Validator \Attribute \Code ;
8
+ use Magento \Eav \Model \Validator \Attribute \Code as AttributeCodeValidator ;
9
9
use Magento \Framework \Api \AttributeValueFactory ;
10
10
use Magento \Framework \App \ObjectManager ;
11
11
use Magento \Framework \Exception \LocalizedException ;
@@ -83,7 +83,7 @@ class Attribute extends \Magento\Eav\Model\Entity\Attribute\AbstractAttribute im
83
83
protected $ dateTimeFormatter ;
84
84
85
85
/**
86
- * @var Code |null
86
+ * @var AttributeCodeValidator |null
87
87
*/
88
88
private $ attributeCodeValidator ;
89
89
@@ -106,7 +106,7 @@ class Attribute extends \Magento\Eav\Model\Entity\Attribute\AbstractAttribute im
106
106
* @param DateTimeFormatterInterface $dateTimeFormatter
107
107
* @param \Magento\Framework\Model\ResourceModel\AbstractResource $resource
108
108
* @param \Magento\Framework\Data\Collection\AbstractDb $resourceCollection
109
- * @param Code |null $attributeCodeValidator
109
+ * @param AttributeCodeValidator |null $attributeCodeValidator
110
110
* @param array $data
111
111
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
112
112
* @codeCoverageIgnore
@@ -131,7 +131,7 @@ public function __construct(
131
131
\Magento \Framework \Model \ResourceModel \AbstractResource $ resource = null ,
132
132
\Magento \Framework \Data \Collection \AbstractDb $ resourceCollection = null ,
133
133
array $ data = [],
134
- Code $ attributeCodeValidator = null
134
+ AttributeCodeValidator $ attributeCodeValidator = null
135
135
) {
136
136
parent ::__construct (
137
137
$ context ,
@@ -155,7 +155,7 @@ public function __construct(
155
155
$ this ->reservedAttributeList = $ reservedAttributeList ;
156
156
$ this ->dateTimeFormatter = $ dateTimeFormatter ;
157
157
$ this ->attributeCodeValidator = $ attributeCodeValidator ?: ObjectManager::getInstance ()->get (
158
- Code ::class
158
+ AttributeCodeValidator ::class
159
159
);
160
160
}
161
161
0 commit comments