Passed
Push — trunk ( 617eba...e4f353 )
by Christian
10:12 queued 13s
created

CountryStateNotFoundException::getStatusCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php declare(strict_types=1);
2
3
namespace Shopware\Core\System\Country\Exception;
4
5
use Shopware\Core\Framework\Log\Package;
6
use Shopware\Core\System\Country\CountryException;
7
use Symfony\Component\HttpFoundation\Response;
8
9
/**
10
 * @deprecated tag:v6.6.0 - reason:remove-exception - will be removed, use CountryException::countryStateNotFound instead
11
 */
12
#[Package('system-settings')]
13
class CountryStateNotFoundException extends CountryException
14
{
15
    public function __construct(string $id)
16
    {
17
        parent::__construct(
18
            Response::HTTP_BAD_REQUEST,
19
            'CHECKOUT__COUNTRY_STATE_NOT_FOUND',
20
            'Country state with id "{{ stateId }}" not found.',
21
            ['stateId' => $id]
22
        );
23
    }
24
}
25