ArrayObjectAsset::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace DoctrineTest\InstantiatorTestAsset;
4
5
use ArrayObject;
6
use BadMethodCallException;
7
8
/**
9
 * Test asset that extends an internal PHP class
10
 */
11
class ArrayObjectAsset extends ArrayObject
12
{
13
    /**
14
     * Constructor - should not be called
15
     *
16
     * @throws BadMethodCallException
17
     */
18
    public function __construct()
19
    {
20
        throw new BadMethodCallException('Not supposed to be called!');
21
    }
22
}
23