CFT   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A instance() 0 6 1
A __construct() 0 4 1
1
<?php
2
3
namespace BitPrepared\Bundle\FormazioneBundle\Domain\ValueObject\TipologiaCampo;
4
5
use BitPrepared\Bundle\FormazioneBundle\Domain\ValueObject\TipologiaCampo;
6
7
/**
8
 * Child of TipologiaCampo CFT
9
 */
10
final class CFT extends TipologiaCampo
11
{
12
    /**
13
     * @return BitPrepared\Bundle\FormazioneBundle\Domain\ValueObject\TipologiaCampo\CFT
14
     */
15
    final public static function instance()
0 ignored issues
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
16
    {
17
        self::$instance = new self();
0 ignored issues
show
Documentation Bug introduced by
It seems like new self() of type object<BitPrepared\Bundl...ect\TipologiaCampo\CFT> is incompatible with the declared type object<BitPrepared\Bundl...eObject\TipologiaCampo> of property $instance.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
18
19
        return self::$instance;
20
    }
21
22
    /**
23
     * costruttore
24
     */
25
    final private function __construct()
0 ignored issues
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
26
    {
27
        $this->name = 'CFT';
28
    }
29
}
30