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

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