Total Complexity | 3 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 33.33% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | abstract class ToManyAssociationMetadataBuilder extends AssociationMetadataBuilder |
||
11 | { |
||
12 | /** @var Annotation\OrderBy|null */ |
||
13 | protected $orderByAnnotation; |
||
14 | |||
15 | public function withIdAnnotation(?Annotation\Id $idAnnotation) : ToManyAssociationMetadataBuilder |
||
16 | { |
||
17 | if ($idAnnotation !== null) { |
||
18 | throw Mapping\MappingException::illegalToManyIdentifierAssociation( |
||
19 | $this->componentMetadata->getClassName(), |
||
20 | $this->fieldName |
||
21 | ); |
||
22 | } |
||
23 | |||
24 | return $this; |
||
25 | } |
||
26 | |||
27 | 387 | public function withOrderByAnnotation(?Annotation\OrderBy $orderByAnnotation) : ToManyAssociationMetadataBuilder |
|
32 | } |
||
33 | } |
||
34 |