Code Duplication    Length = 8-8 lines in 2 locations

src/Method/ResultObject.php 1 location

@@ 147-154 (lines=8) @@
144
     * @param string $property
145
     * @return string
146
     */
147
    private function setterName($property)
148
    {
149
        $parts = explode('_', $property);
150
        $parts = array_map('ucfirst', $parts);
151
        $property = implode('', $parts);
152
153
        return 'set' . ucfirst($property);
154
    }
155
}
156

src/Method/ResultObjectMapper.php 1 location

@@ 68-75 (lines=8) @@
65
     * @param string $field
66
     * @return string
67
     */
68
    private function getSetterName($field)
69
    {
70
        $parts = explode('_', $field);
71
        array_map('ucfirst', $parts);
72
        $name = 'set' . implode('', $parts);
73
74
        return $name;
75
    }
76
77
    /**
78
     * Transform PaymentInstrument result array to object