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

__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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