WakeUpNoticesAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __wakeup() 0 4 1
1
<?php
2
3
namespace DoctrineTest\InstantiatorTestAsset;
4
5
use ArrayObject;
6
use function trigger_error;
7
8
/**
9
 * A simple asset for an abstract class
10
 */
11
class WakeUpNoticesAsset extends ArrayObject
12
{
13
    /**
14
     * Wakeup method called after un-serialization
15
     */
16
    public function __wakeup()
17
    {
18
        trigger_error('Something went bananas while un-serializing this instance');
19
    }
20
}
21