| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function createForCustomer(CustomerInterface $customer): AffiliateInterface |
||
| 26 | { |
||
| 27 | /** @var AffiliateInterface $affiliate */ |
||
| 28 | $affiliate = $this->decoratedFactory->createNew(); |
||
| 29 | $affiliate->setCustomer($customer); |
||
| 30 | $affiliate->setTokenValue($this->generateTokenValue()); |
||
| 31 | |||
| 32 | return $affiliate; |
||
| 33 | } |
||
| 40 |