Completed
Pull Request — master (#374)
by Leny
32:39 queued 25:27
created

IdentifierNotDefinedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 10
rs 9.4285
cc 1
eloc 5
nc 1
nop 4
1
<?php
2
3
namespace Victoire\Bundle\CoreBundle\Exception;
4
5
class IdentifierNotDefinedException extends \Exception
6
{
7
    /**
8
     * {@inheritdoc}
9
     */
10
    public function __construct($identifiers, $message = '', $code = 450, \Exception $previous = null)
11
    {
12
        $message = sprintf(
13
            'The following identifiers are not defined as well, (%s)
14
                    you need to add the following lines on your businessEntity properties:
15
                    <br> <pre>@VIC\BusinessProperty("businessParameter")</pre>',
16
            implode($identifiers, ', ')
17
        );
18
        parent::__construct($message, $code, $previous);
19
    }
20
}
21