Completed
Push — master ( dde429...22637e )
by Andrii
20:00
created

VcsGoal   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 4
Bugs 0 Features 1
Metric Value
wmc 3
c 4
b 0
f 1
lcom 1
cbo 1
dl 0
loc 22
ccs 0
cts 13
cp 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setIgnore() 0 4 1
A getIgnore() 0 8 2
1
<?php
2
3
/*
4
 * Task runner, code generator and build tool for easier continuos integration
5
 *
6
 * @link      https://github.com/hiqdev/hidev
7
 * @package   hidev
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\goals;
13
14
use Yii;
15
16
/**
17
 * Goal for VCS (Version Control Systems).
18
 */
19
class VcsGoal extends DefaultGoal
20
{
21
    public $lastTag = 'Under development';
22
23
    public $initTag = 'Development started';
24
25
    public function setIgnore($items, $where = '')
26
    {
27
        $this->getIgnore()->setItems($items, $where);
28
    }
29
30
    protected $_ignore;
31
32
    public function getIgnore()
33
    {
34
        if (!is_object($this->_ignore)) {
35
            $this->_ignore = $this->getConfig()->get('vcsignore');
36
        }
37
38
        return $this->_ignore;
39
    }
40
}
41