Completed
Push — master ( e02cbc...0dd416 )
by Andrii
13:13
created

Composer   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 1
dl 0
loc 17
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
/*
4
 * Composer plugin for HiDev
5
 *
6
 * @link      https://github.com/hiqdev/hidev-composer
7
 * @package   hidev-composer
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\composer\components;
13
14
use Yii;
15
16
/**
17
 * `composer`.
18
 * @author Andrii Vasyliev <[email protected]>
19
 */
20
class Composer extends \hidev\base\Component
21
{
22
    public function getJson()
23
    {
24
        return $this->getConfiguration();
25
    }
26
27
    public function getConfiguration()
28
    {
29
        return $this->take('composer.json');
30
    }
31
32
    public function getFullName()
33
    {
34
        return $this->getConfiguration()->getFullName();
35
    }
36
}
37