PublicRepository   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getType() 0 3 1
A getConfigFile() 0 3 1
A getBuildDirectory() 0 3 1
1
<?php
2
3
namespace App\Satis\Context;
4
5
use App\Satis\BuildContext;
6
use App\Satis\ConfigBuilder;
7
8
/**
9
 * @author Lukas Homza <[email protected]>
10
 */
11
class PublicRepository extends BuildContext {
12
    /**
13
     * @return int
14
     */
15
    public function getType() {
16
        return ConfigBuilder::PUBLIC_REPOSITORY;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getConfigFile() {
23
        return config('satis.public_mirror');
24
    }
25
26
    /**
27
     * @return string
28
     */
29
    public function getBuildDirectory() {
30
        return config('satis.public_repository');
31
    }
32
}
33