GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

StoreJobBusinessCaseFactory   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 30
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A addBusinesCase() 0 4 1
A getBusinessCaseWithJob() 0 10 3
A getAllStoreJobBusinessCase() 0 4 1
1
<?php
2
/**
3
 * @package: chapi
4
 *
5
 * @author: bthapaliya
6
 * @since: 2017-01-03
7
 *
8
 */
9
10
namespace Chapi\BusinessCase\JobManagement;
11
12
class StoreJobBusinessCaseFactory implements StoreJobBusinessCaseFactoryInterface
13
{
14
    /**
15
     * @var StoreJobBusinessCaseInterface[]
16
     */
17
    private $storeJobBusinessCases;
18
19
    public function addBusinesCase(StoreJobBusinessCaseInterface $storeJob)
20
    {
21
        $this->storeJobBusinessCases[] = $storeJob;
22
    }
23
    public function getBusinessCaseWithJob($jobName)
24
    {
25
        /** @var StoreJobBusinessCaseInterface $store */
26
        foreach ($this->storeJobBusinessCases as $store) {
27
            if ($store->isJobAvailable($jobName)) {
28
                return $store;
29
            }
30
        }
31
        return null;
32
    }
33
34
    /**
35
     * @return StoreJobBusinessCaseInterface[]
36
     */
37
    public function getAllStoreJobBusinessCase()
38
    {
39
        return $this->storeJobBusinessCases;
40
    }
41
}
42