Code Duplication    Length = 8-8 lines in 2 locations

src/Rocket/ORM/Model/Map/TableMap.php 2 locations

@@ 259-266 (lines=8) @@
256
     *
257
     * @return array
258
     */
259
    public function getRelation($name)
260
    {
261
        if (!isset($this->relations[$name])) {
262
            throw new \InvalidArgumentException('The relation with name "' . $name . '" is not found for table "' . $this->getTableName() . '"');
263
        }
264
265
        return $this->relations[$name];
266
    }
267
268
    /**
269
     * @param string $name
@@ 273-280 (lines=8) @@
270
     *
271
     * @return array
272
     */
273
    public function getColumn($name)
274
    {
275
        if (!isset($this->columns[$name])) {
276
            throw new \InvalidArgumentException('The column with name "' . $name . '" is not found for table "' . $this->getTableName() . '"');
277
        }
278
279
        return $this->columns[$name];
280
    }
281
282
    /**
283
     * @return string