| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | 168 | public function withIdAnnotation(?Annotation\Id $idAnnotation) : ToManyAssociationMetadataBuilder |
|
| 16 | { |
||
| 17 | 168 | if ($idAnnotation !== null) { |
|
| 18 | throw Mapping\MappingException::illegalToManyIdentifierAssociation( |
||
| 19 | $this->componentMetadata->getClassName(), |
||
| 20 | $this->fieldName |
||
| 21 | ); |
||
| 22 | } |
||
| 23 | |||
| 24 | 168 | return $this; |
|
| 25 | } |
||
| 34 |