| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function generateLink(int $type, int $resourceId): string |
||
| 21 | { |
||
| 22 | $token = new ValidationToken($type, $resourceId); |
||
| 23 | $this->tokenRepository->save($token, true); |
||
| 24 | |||
| 25 | return $this->urlGenerator->generate('validate_token', [ |
||
| 26 | 'type' => $this->getTypeString($type), |
||
| 27 | 'hash' => $token->getHash(), |
||
| 28 | ], UrlGeneratorInterface::ABSOLUTE_URL); |
||
| 29 | } |
||
| 49 |