NotConstructable::__wakeup()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 1
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 1
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php namespace BestServedCold\PhalueObjects\Pattern;
2
3
/**
4
 * Class UnConstructable
5
 *
6
 * @package   BestServedCold\PhalueObjects\Pattern
7
 * @author    Adam Lewis <[email protected]>
8
 * @copyright Copyright (c) 2015 Best Served Cold Media Limited
9
 * @license   http://http://opensource.org/licenses/GPL-3.0 GPL License
10
 * @link      http://bestservedcold.com
11
 * @since     0.0.1-alpha
12
 * @version   0.0.2-alpha
13
 */
14
abstract class NotConstructable
0 ignored issues
show
Coding Style introduced by
NotConstructable does not seem to conform to the naming convention (^Abstract|Factory$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
15
{
16
    /**
17
     * Prevent instance from being cloned.
18
     */
19
    private function __clone() {}
20
21
    /**
22
     * Prevent instance from being unserialised.
23
     */
24
    private function __wakeup() {}
25
}
26