Completed
Pull Request — develop (#39)
by Sam
02:08
created

IndexExistsException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
dl 0
loc 9
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Nord\Lumen\Elasticsearch\Exceptions;
4
5
/**
6
 * Class IndexExistsException
7
 * @package Nord\Lumen\Elasticsearch\Exceptions
8
 */
9
class IndexExistsException extends Exception
10
{
11
12
    /**
13
     * @inheritdoc
14
     */
15
    public function __construct($index, $code = 0, \Exception $previous = null)
16
    {
17
        parent::__construct(sprintf('The index %s already exists', $index), $code, $previous);
18
    }
19
}
20