Failed Conditions
Push — perf-tests ( 2fc93e...db6806 )
by Adrien
13:45
created

InvalidNameException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 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
    public function __construct($name)
11
    {
12
        $msg = '%s is not a valid name identifier for a border. Valid identifiers are: %s.';
13
14
        parent::__construct(sprintf($msg, $name, implode(',', BorderPart::getAllowedNames())));
15
    }
16
}
17