GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

CargoNotFoundException::forTrackingId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
/*
3
 * This file is part of the prooph/php-ddd-cargo-sample.
4
 * (c) Alexander Miertsch <[email protected]>
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 * 
9
 * Date: 26.03.14 - 22:09
10
 */
11
declare(strict_types = 1);
12
13
namespace Codeliner\CargoBackend\Application\Exception;
14
15
use Codeliner\CargoBackend\Model\Cargo\TrackingId;
16
17
/**
18
 * Class CargoNotFoundException
19
 *
20
 * @package CargoBackend\API\Exception
21
 * @author Alexander Miertsch <[email protected]>
22
 */
23
class CargoNotFoundException extends \RuntimeException implements ApiException
24
{
25
    /**
26
     * @param TrackingId $aTrackingId
27
     * @return CargoNotFoundException
28
     */
29
    public static function forTrackingId(TrackingId $aTrackingId): CargoNotFoundException
30
    {
31
        return new self(sprintf(
32
            'Cargo with TrackingId -%s- can not be found.',
33
            $aTrackingId->toString()
34
        ));
35
    }
36
}
37