MessagingBuilderException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 3
1
<?php
2
3
/*
4
 * This file is part of the MilioooMessageBundle package.
5
 *
6
 * (c) Michiel boeckaert <[email protected]>
7
 * This source file is subject to the MIT license that is bundled
8
 * with this source code in the file LICENSE.
9
 */
10
11
namespace Miliooo\Messaging\Builder\Exceptions;
12
13
/**
14
 * BuilderException.
15
 *
16
 * A builder exception happens when the builder is not able to build a valid
17
 * thread object.
18
 *
19
 * The controller should catch those exceptions, translate them and show them to the user
20
 *
21
 * @author Michiel Boeckaert <[email protected]>
22
 */
23
class MessagingBuilderException extends \Exception
24
{
25
    /**
26
     * Constructor.
27
     *
28
     * @param string     $message
29
     * @param integer    $code
30
     * @param \Exception $previous
0 ignored issues
show
Documentation introduced by
Should the type for parameter $previous not be \Exception|null?

This check looks for @param annotations where the type inferred by our type inference engine differs from the declared type.

It makes a suggestion as to what type it considers more descriptive.

Most often this is a case of a parameter that can be null in addition to its declared types.

Loading history...
31
     */
32
    public function __construct($message, $code = 0, $previous = null)
33
    {
34
        parent::__construct($message, $code, $previous);
35
36
    }
37
}
38