ObjectNotFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 17
ccs 7
cts 7
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
/**
4
 * This file is part of Transfer.
5
 *
6
 * For the full copyright and license information, please view the LICENSE file located
7
 * in the root directory.
8
 */
9
10
namespace Transfer\EzPlatform\Exception;
11
12
use eZ\Publish\API\Repository\Exceptions\NotFoundException;
13
14
/**
15
 * Exception class for cases when.
16
 */
17
class ObjectNotFoundException extends NotFoundException
18
{
19
    /**
20
     * ObjectNotFoundException constructor.
21
     *
22
     * @param string   $class
23
     * @param string[] $identifiers
24 42
     */
25
    public function __construct($class, array $identifiers)
26 42
    {
27 42
        parent::__construct(sprintf(
28 42
            '%s not found. Checked with identifier(s): %s.',
29 42
            $class,
30 42
            implode('", "', $identifiers)
31 42
        ));
32
    }
33
}
34