| @@ 277-287 (lines=11) @@ | ||
| 274 | /** |
|
| 275 | * @inheritdoc |
|
| 276 | */ |
|
| 277 | public function getAttributeLength(string $class, string $name): int |
|
| 278 | { |
|
| 279 | assert( |
|
| 280 | $this->hasAttributeLength($class, $name) === true, |
|
| 281 | "Length not found for column `$name` in class `$class`." |
|
| 282 | ); |
|
| 283 | ||
| 284 | $result = $this->attributeLengths[$class][$name]; |
|
| 285 | ||
| 286 | return $result; |
|
| 287 | } |
|
| 288 | ||
| 289 | /** |
|
| 290 | * @inheritdoc |
|
| @@ 326-336 (lines=11) @@ | ||
| 323 | /** |
|
| 324 | * @inheritdoc |
|
| 325 | */ |
|
| 326 | public function getRelationshipType(string $class, string $name): int |
|
| 327 | { |
|
| 328 | assert( |
|
| 329 | $this->hasRelationship($class, $name) === true, |
|
| 330 | "Relationship `$name` not found in class `$class`." |
|
| 331 | ); |
|
| 332 | ||
| 333 | $result = $this->relationshipTypes[$class][$name]; |
|
| 334 | ||
| 335 | return $result; |
|
| 336 | } |
|
| 337 | ||
| 338 | /** |
|
| 339 | * @inheritdoc |
|