UnCloneableAsset::__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 BadMethodCallException;
6
7
/**
8
 * Base un-cloneable asset
9
 */
10
class UnCloneableAsset
11
{
12
    /**
13
     * Constructor - should not be called
14
     *
15
     * @throws BadMethodCallException
16
     */
17
    public function __construct()
18
    {
19
        throw new BadMethodCallException('Not supposed to be called!');
20
    }
21
22
    /**
23
     * Magic `__clone` - should not be invoked
24
     *
25
     * @throws BadMethodCallException
26
     */
27
    public function __clone()
28
    {
29
        throw new BadMethodCallException('Not supposed to be called!');
30
    }
31
}
32