Completed
Push — master ( 142ca7...5d5121 )
by Leny
06:12
created

MissingBusinessEntityInstanceException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
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 16
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Victoire\Bundle\BusinessEntityBundle\Exception;
4
5
/**
6
 * Triggered when at least one Business entity instance is needed
7
 */
8
class MissingBusinessEntityInstanceException extends \Exception
9
{
10
11
    /**
12
     * MissingBusinessEntityException constructor.
13
     *
14
     * @param string $className
15
     */
16
    public function __construct($className)
17
    {
18
        $this->message = sprintf(
19
            'There isn\'t any instance of %s but at least one is required. Please create one and retry.',
20
            $className
21
        );
22
    }
23
}