ElencoSessioniForTipologiaRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTipoCampo() 0 4 1
1
<?php
2
3
namespace BitPrepared\Bundle\FormazioneBundle\Domain\Service\QueryRequest;
4
5
use BitPrepared\Bundle\FormazioneBundle\Domain\Service\Request;
6
use BitPrepared\Bundle\FormazioneBundle\Domain\ValueObject\TipologiaCampo;
7
8
/**
9
 * No comment found on ddd model
10
 */
11
final class ElencoSessioniForTipologiaRequest extends Request
12
{
13
    /**
14
     * Tipologia di campo CFM/CFT/CCG/CAM
15
     *
16
     * @var BitPrepared\Bundle\FormazioneBundle\Domain\ValueObject\TipologiaCampo
17
     */
18
    private $tipoCampo;
19
20
    /**
21
     * costruttore
22
     */
23
    final public function __construct(TipologiaCampo $tipoCampo)
0 ignored issues
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
24
    {
25
        $this->tipoCampo = $tipoCampo;
0 ignored issues
show
Documentation Bug introduced by
It seems like $tipoCampo of type object<BitPrepared\Bundl...eObject\TipologiaCampo> is incompatible with the declared type object<BitPrepared\Bundl...eObject\TipologiaCampo> of property $tipoCampo.

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...
26
    }
27
28
    /**
29
     * @return BitPrepared\Bundle\FormazioneBundle\Domain\ValueObject\TipologiaCampo
30
     */
31
    final public function getTipoCampo()
0 ignored issues
show
Coding Style introduced by
Unnecessary FINAL modifier in FINAL class
Loading history...
32
    {
33
        return $this->tipoCampo;
34
    }
35
}
36