Passed
Pull Request — master (#259)
by Arnaud
08:22
created

ClassNotSupportedException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 1
eloc 4
c 1
b 1
f 0
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
1
<?php
2
3
namespace LAG\AdminBundle\Exception\DataHandler;
4
5
use Exception;
6
use LAG\AdminBundle\DataProvider\DataSourceInterface;
7
8
class ClassNotSupportedException extends Exception
9
{
10
    public function __construct(DataSourceInterface $dataSource)
11
    {
12
        parent::__construct(sprintf(
13
            'The data of type "%s" is not supported by any data handlers',
14
            get_class($dataSource->getData())
15
        ));
16
    }
17
}
18