Completed
Push — master ( 0cb788...5f9089 )
by Matthew
03:43
created

OutfitTotalsStatisticsLoader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Ps2alerts\Api\Loader\Statistics;
4
5
use Ps2alerts\Api\Loader\Statistics\AbstractStatisticsLoader;
6
use Ps2alerts\Api\QueryObjects\QueryObject;
7
use Ps2alerts\Api\Repository\Statistics\OutfitTotalsRepository;
8
9
class OutfitTotalsStatisticsLoader extends AbstractStatisticsLoader
10
{
11
    /**
12
     * @var \Ps2alerts\Api\Repository\Metrics\OutfitTotalsRepository
13
     */
14
    protected $repository;
15
16
    /**
17
     * Construct
18
     *
19
     * @param \Ps2alerts\Api\Repository\Metrics\OutfitTotalsRepository $repository
20
     */
21
    public function __construct(OutfitTotalsRepository $repository)
22
    {
23
        $this->repository = $repository;
0 ignored issues
show
Documentation Bug introduced by
It seems like $repository of type object<Ps2alerts\Api\Rep...OutfitTotalsRepository> is incompatible with the declared type object<Ps2alerts\Api\Rep...OutfitTotalsRepository> of property $repository.

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...
24
        $this->setCacheNamespace('Statistics');
25
        $this->setType('OutfitTotals');
26
        $this->setFlags('outfitIDs');
27
    }
28
}
29