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

OutfitTotalsStatisticsLoader::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4286
cc 1
eloc 5
nc 1
nop 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