Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
36 | public function attach(RepresentationInterface $representation): self |
||
37 | { |
||
38 | $this->ensureNotLocked(); |
||
39 | |||
40 | $representation->setType($this->priceTypeDefinition->type()); |
||
41 | |||
42 | $this->uniquenessGuard->ensureUnique($representation); |
||
43 | |||
44 | $this->representations[] = $representation; |
||
45 | |||
46 | return $this; |
||
47 | } |
||
62 |