Code Duplication    Length = 9-9 lines in 2 locations

src/Parameter/Parameter.php 1 location

@@ 149-157 (lines=9) @@
146
     *
147
     * @return mixed
148
     */
149
    public function __get($key)
150
    {
151
        $getter = 'get' . $this->classify($key);
152
        if (method_exists($this, $getter)) {
153
            return call_user_func(array($this, $getter));
154
        }
155
156
        return $this->get($key);
157
    }
158
159
    /**
160
     * Magic setter, calls getXXX if exists.

src/Response/Response.php 1 location

@@ 164-172 (lines=9) @@
161
     *
162
     * @return mixed
163
     */
164
    public function __get($key)
165
    {
166
        $getter = 'get' . $this->classify($key);
167
        if (method_exists($this, $getter)) {
168
            return call_user_func(array($this, $getter));
169
        }
170
171
        return $this->get($key);
172
    }
173
174
    /**
175
     * Magic setter, calls setXXX if exists.