WakeUpNoticesAsset::__wakeup()   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 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