Code Duplication    Length = 62-63 lines in 2 locations

src/Model/Common/CustomFieldModel.php 1 location

@@ 21-82 (lines=62) @@
18
/**
19
 * Custom Field Model.
20
 */
21
class CustomFieldModel extends AbstractModel implements ResourceModelInterface
22
{
23
    /**
24
     * Custom Field ID.
25
     *
26
     * @SA\Type("string")
27
     * @SA\SerializedName("id")
28
     *
29
     * @var string|null
30
     */
31
    protected $id;
32
33
    /**
34
     * Custom field value.
35
     *
36
     * @SA\Type("string")
37
     * @SA\SerializedName("value")
38
     *
39
     * @var string|null
40
     */
41
    protected $value;
42
43
    /**
44
     * @return null|string
45
     */
46
    public function getId()
47
    {
48
        return $this->id;
49
    }
50
51
    /**
52
     * @param null|string $id
53
     *
54
     * @return $this
55
     */
56
    public function setId($id)
57
    {
58
        $this->id = $id;
59
60
        return $this;
61
    }
62
63
    /**
64
     * @return null|string
65
     */
66
    public function getValue()
67
    {
68
        return $this->value;
69
    }
70
71
    /**
72
     * @param null|string $value
73
     *
74
     * @return $this
75
     */
76
    public function setValue($value)
77
    {
78
        $this->value = $value;
79
80
        return $this;
81
    }
82
}
83

src/Model/Common/MetadataModel.php 1 location

@@ 21-83 (lines=63) @@
18
/**
19
 * Metadata Model.
20
 */
21
class MetadataModel extends AbstractModel implements ResourceModelInterface
22
{
23
    /**
24
     * Key should be less than 50 symbols and match following regular expression ([A-Za-z0-9_-]+).
25
     *
26
     * @SA\Type("string")
27
     * @SA\SerializedName("key")
28
     *
29
     * @var string|null
30
     */
31
    protected $key;
32
33
    /**
34
     * Value should be less than 1000 symbols, compatible with JSON string.
35
     * Use JSON 'null' in order to remove metadata entry.
36
     *
37
     * @SA\Type("string")
38
     * @SA\SerializedName("value")
39
     *
40
     * @var string|null
41
     */
42
    protected $value;
43
44
    /**
45
     * @return null|string
46
     */
47
    public function getKey()
48
    {
49
        return $this->key;
50
    }
51
52
    /**
53
     * @param null|string $key
54
     *
55
     * @return $this
56
     */
57
    public function setKey($key)
58
    {
59
        $this->key = $key;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return null|string
66
     */
67
    public function getValue()
68
    {
69
        return $this->value;
70
    }
71
72
    /**
73
     * @param null|string $value
74
     *
75
     * @return $this
76
     */
77
    public function setValue($value)
78
    {
79
        $this->value = $value;
80
81
        return $this;
82
    }
83
}
84