Code Duplication    Length = 11-11 lines in 2 locations

src/Data/ModelSchemaInfo.php 2 locations

@@ 236-246 (lines=11) @@
233
    /**
234
     * @inheritdoc
235
     */
236
    public function getAttributeLength(string $class, string $name): int
237
    {
238
        assert(
239
            $this->hasAttributeLength($class, $name) === true,
240
            "Length not found for column `$name` in class `$class`."
241
        );
242
243
        $result = $this->attributeLengths[$class][$name];
244
245
        return $result;
246
    }
247
248
    /**
249
     * @inheritdoc
@@ 281-291 (lines=11) @@
278
    /**
279
     * @inheritdoc
280
     */
281
    public function getRelationshipType(string $class, string $name): int
282
    {
283
        assert(
284
            $this->hasRelationship($class, $name) === true,
285
            "Relationship `$name` not found in class `$class`."
286
        );
287
288
        $result = $this->relationshipTypes[$class][$name];
289
290
        return $result;
291
    }
292
293
    /**
294
     * @inheritdoc