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

InvalidSeoGeneratorException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 7
nc 1
nop 3
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