PharExceptionAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 12
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace DoctrineTest\InstantiatorTestAsset;
4
5
use BadMethodCallException;
6
use PharException;
7
8
/**
9
 * Test asset that extends an internal PHP class
10
 * This class should be serializable without problems
11
 * and without getting the "Erroneous data format for unserializing"
12
 * error
13
 */
14
class PharExceptionAsset extends PharException
15
{
16
    /**
17
     * Constructor - should not be called
18
     *
19
     * @throws BadMethodCallException
20
     */
21
    public function __construct()
22
    {
23
        throw new BadMethodCallException('Not supposed to be called!');
24
    }
25
}
26