| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 16 | public static function recipientNotFound( |
||
| 17 | string $identifier, |
||
| 18 | string $value |
||
| 19 | ): self { |
||
| 20 | if (!Feature::isActive('v6.6.0.0')) { |
||
| 21 | return new NewsletterRecipientNotFoundException($identifier, $value); |
||
|
|
|||
| 22 | } |
||
| 23 | |||
| 24 | return new self( |
||
| 25 | Response::HTTP_BAD_REQUEST, |
||
| 26 | self::NEWSLETTER_RECIPIENT_NOT_FOUND_CODE, |
||
| 27 | 'The NewsletterRecipient with the identifier "{{ identifier }}" - {{ value }} was not found.', |
||
| 28 | ['identifier' => $identifier, 'value' => $value] |
||
| 29 | ); |
||
| 32 |