Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-eav
Model
Entity
Attribute
ValidationRule.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Eav\Model\Entity\Attribute
;
8
12
class
ValidationRule
extends
\Magento\Framework\Model\AbstractModel
implements
13
\Magento\Eav\Api\Data\AttributeValidationRuleInterface
14
{
18
public
function
getKey
()
19
{
20
return
$this->
getData
(self::KEY);
21
}
22
26
public
function
getValue
()
27
{
28
return
$this->
getData
(self::VALUE);
29
}
30
37
public
function
setKey
($key)
38
{
39
return
$this->
setData
(self::KEY, $key);
40
}
41
48
public
function
setValue
(
$value
)
49
{
50
return
$this->
setData
(self::VALUE,
$value
);
51
}
52
}
Magento\Framework\Model\AbstractModel
Definition:
AbstractModel.php:19
Magento\Framework\Model\AbstractModel\setData
setData($key, $value=null)
Definition:
AbstractModel.php:345
Magento\Eav\Model\Entity\Attribute\ValidationRule\setKey
setKey($key)
Definition:
ValidationRule.php:37
Magento\Framework\DataObject\getData
getData($key='', $index=null)
Definition:
DataObject.php:119
Magento\Eav\Model\Entity\Attribute\ValidationRule\setValue
setValue($value)
Definition:
ValidationRule.php:48
Magento\Eav\Model\Entity\Attribute\ValidationRule
Definition:
ValidationRule.php:12
Magento\Eav\Model\Entity\Attribute\ValidationRule\getValue
getValue()
Definition:
ValidationRule.php:26
$value
$value
Definition:
gender.phtml:16
Magento\Eav\Model\Entity\Attribute\ValidationRule\getKey
getKey()
Definition:
ValidationRule.php:18
Magento\Eav\Model\Entity\Attribute
Magento\Eav\Api\Data\AttributeValidationRuleInterface
Definition:
AttributeValidationRuleInterface.php:14