BaseReports   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 3
lcom 1
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResourcesFromApi() 0 4 1
A sleepToNotOverDoApiLimits() 0 6 2
1
<?php
2
namespace AlfredNutileInc\HPClient\Reports;
3
4
use Facades\AlfredNutileInc\HPClient\ResourceApi;
5
6
class BaseReports
7
{
8
9
    protected $resources = [];
10
11
    public function getResourcesFromApi()
12
    {
13
        $this->resources = ResourceApi::getResources();
14
    }
15
16
    protected function sleepToNotOverDoApiLimits()
17
    {
18
        if (!\App::environment("testing")) {
19
            sleep(3); //api limits
20
        }
21
    }
22
}
23