FileAlreadyExistsException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 11
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Partnermarketing\FileSystemBundle\Exception;
4
5
/**
6
 * Exception to be thrown when a file already exists
7
 */
8
class FileAlreadyExistsException extends \RuntimeException
9
{
10
    public function __construct($key, $code = 0, \Exception $previous = null)
11
    {
12
        parent::__construct(
13
            sprintf('The file %s already exists and can not be overwritten.', $key),
14
            $code,
15
            $previous
16
        );
17
    }
18
}
19