Composer   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getJson() 0 4 1
A getConfiguration() 0 4 1
A getFullName() 0 4 1
1
<?php
2
/**
3
 * HiDev plugin for Composer.
4
 *
5
 * @link      https://github.com/hiqdev/hidev-composer
6
 * @package   hidev-composer
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hidev\composer\components;
12
13
/**
14
 * `composer`.
15
 * @author Andrii Vasyliev <[email protected]>
16
 */
17
class Composer extends \hidev\base\Component
18
{
19
    public function getJson()
20
    {
21
        return $this->getConfiguration();
22
    }
23
24
    public function getConfiguration()
25
    {
26
        return $this->take('composer.json');
27
    }
28
29
    public function getFullName()
30
    {
31
        return $this->getConfiguration()->getFullName();
32
    }
33
}
34