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

Composer::getJson()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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