Swift_SwiftException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of SwiftMailer.
5
 * (c) 2004-2009 Chris Corbyn
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
/**
12
 * Base Exception class.
13
 *
14
 * @author Chris Corbyn
15
 */
16
class Swift_SwiftException extends Exception
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
17
{
18
    /**
19
     * Create a new SwiftException with $message.
20
     *
21
     * @param string    $message
22
     * @param int       $code
23
     * @param Exception $previous
24
     */
25 81
    public function __construct($message, $code = 0, Exception $previous = null)
26
    {
27 81
        parent::__construct($message, $code, $previous);
28 81
    }
29
}
30