DataNotFoundException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 14
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
namespace LWI\DeliveryTracking\Exception;
4
5
use \Exception;
6
7
/**
8
 * DataNotFoundException
9
 *
10
 * Used when the requested data for a delivery os not found.
11
 */
12
class DataNotFoundException extends Exception
13
{
14
    /**
15
     * DataNotFoundException constructor.
16
     * @param string $adapter
17
     */
18 9
    public function __construct($adapter = '')
19
    {
20 9
        parent::__construct(sprintf(
21 9
            'The requested data has not been found by this adapter%s.',
22 9
            $adapter ? ' ('.$adapter.')' : ''
23 6
        ));
24 9
    }
25
}
26