Failed Conditions
Pull Request — master (#200)
by Hura
03:45 queued 01:12
created

InvalidNameException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
namespace Box\Spout\Writer\Exception\Border;
4
5
use Box\Spout\Writer\Exception\WriterException;
6
use Box\Spout\Writer\Style\BorderPart;
7
8
class InvalidNameException extends WriterException
9
{
10
11
    public function __construct($name)
12
    {
13
14
        $msg = '%s is not a valid name identifier for a border. Valid identifiers are: %s.';
15
16
        parent::__construct(sprintf($msg, $name, implode(',', BorderPart::getAllowedNames())));
17
18
    }
19
}
20