UnCloneableAsset   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 22
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A __clone() 0 4 1
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