Code Duplication    Length = 7-7 lines in 2 locations

src/Payloads/SystemPropertyPayload.php 1 location

@@ 58-64 (lines=7) @@
55
    /**
56
     * @param array $properties
57
     */
58
    public function setProperty(array $properties) {
59
        foreach ($properties as $key => $value) {
60
            $property['@key'] = $key;
61
            $property['@value'] = $value;
62
            $this->property = $property;
63
        }
64
    }
65
66
    /**
67
     * @return array

src/Payloads/UserPayload.php 1 location

@@ 90-96 (lines=7) @@
87
    /**
88
     * @param array $properties
89
     */
90
    public function setProperties(array $properties) {
91
        foreach ($properties as $key => $value) {
92
            $property['@key'] = $key;
93
            $property['@value'] = $value;
94
            $this->properties['property'][] = $property;
95
        }
96
    }
97
98
    /**
99
     * @return string