ContainerIsEmptyException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 16
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
namespace GenericCollections\Exceptions;
3
4
class ContainerIsEmptyException extends GenericCollectionsException
5
{
6
    /**
7
     * ContainerIsEmptyException constructor.
8
     *
9
     * @param string $container
10
     * @param int $action
11
     * @param int $code
12
     * @param \Exception|null $previous
13
     */
14 6
    public function __construct($container, $action, $code = 0, \Exception $previous = null)
15
    {
16 6
        $message = "Can not $action an element from an empty $container";
17 6
        parent::__construct($message, $code, $previous);
18 6
    }
19
}
20