NotConstructable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 1
b 0
f 0

2 Methods

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