Completed
Branch master (0b86d9)
by Léo
02:17
created

InvalidSeoGeneratorException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php
2
3
namespace Leogout\Bundle\SeoBundle\Exception;
4
5
/**
6
 * Description of InvalidSeoGeneratorException
7
 *
8
 * @author: leogout
9
 */
10
class InvalidSeoGeneratorException extends \InvalidArgumentException
11
{
12
13
    public function __construct($configurator, $expectedGenerator, $givenGenerator)
14
    {
15
        parent::__construct(
16
            sprintf(
17
                'Invalid seo generator passed to %s. Expected "%s", but got "%s".',
18
                $configurator,
19
                $expectedGenerator,
20
                $givenGenerator
21
            )
22
        );
23
    }
24
}
25