Passed
Push — trunk ( 243220...db381d )
by Christian
13:44 queued 16s
created

NewsletterRecipientNotFoundException::getStatusCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 4
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 8
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\Content\Newsletter\Exception;
4
5
use Shopware\Core\Content\Newsletter\NewsletterException;
6
use Shopware\Core\Framework\Log\Package;
7
use Symfony\Component\HttpFoundation\Response;
8
9
/**
10
 * @deprecated tag:v6.6.0 - reason:remove-exception - Will be removed, use NewsletterException::recipientNotFound instead
11
 */
12
#[Package('customer-order')]
13
class NewsletterRecipientNotFoundException extends NewsletterException
14
{
15
    public function __construct(
16
        string $identifier,
17
        string $value
18
    ) {
19
        parent::__construct(
20
            Response::HTTP_INTERNAL_SERVER_ERROR,
21
            'CONTENT__NEWSLETTER_RECIPIENT_NOT_FOUND',
22
            'The NewsletterRecipient with the identifier "{{ identifier }}" - {{ value }} was not found.',
23
            ['identifier' => $identifier, 'value' => $value]
24
        );
25
    }
26
}
27