ContainerExists   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 4
Bugs 1 Features 0
Metric Value
wmc 1
c 4
b 1
f 0
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * For the full copyright and license information, please view the LICENSE
4
 * file that was distributed with this source code.
5
 *
6
 * @author Nikita Vershinin <[email protected]>
7
 * @license MIT
8
 */
9
namespace OpenStackStorage\Exceptions;
10
11
/**
12
 * Raised when attempting to create a container when the container
13
 * already exists.
14
 */
15
class ContainerExists extends Error
16
{
17
18
    /**
19
     * The class constructor.
20
     *
21
     * @param string     $containerName
22
     * @param integer    $code
23
     * @param \Exception $previous
24
     */
25
    public function __construct($containerName, $code = 0, \Exception $previous = null)
26
    {
27
        parent::__construct('Container ' . $containerName . ' already exists');
28
    }
29
}
30