Local   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 45
rs 10
c 1
b 0
f 0
wmc 4
lcom 1
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getCode() 0 4 1
A getWorkingDirectory() 0 4 1
A prepare() 0 4 1
A process() 0 4 1
1
<?php
2
3
/**
4
 * Drush Cerbere command line tools.
5
 * Copyright (C) 2015 - Sebastien Malot <[email protected]>
6
 *
7
 * This program is free software; you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License as published by
9
 * the Free Software Foundation; either version 2 of the License, or
10
 * (at your option) any later version.
11
 *
12
 * This program is distributed in the hope that it will be useful,
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 * GNU General Public License for more details.
16
 *
17
 * You should have received a copy of the GNU General Public License along
18
 * with this program; if not, write to the Free Software Foundation, Inc.,
19
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20
 */
21
22
namespace Cerbere\Versioning;
23
24
/**
25
 * Class Local
26
 * @package Cerbere\Versioning
27
 */
28
class Local implements VersioningInterface
29
{
30
    /**
31
     * @var string
32
     */
33
    protected $workDirectory;
34
35
    /**
36
     * @return string
37
     */
38
    public function getCode()
39
    {
40
        return 'local';
41
    }
42
43
    /**
44
     * @return string
45
     */
46
    public function getWorkingDirectory()
47
    {
48
        return $this->workDirectory;
49
    }
50
51
    /**
52
     * @param string $source
53
     *
54
     * @return mixed
55
     */
56
    public function prepare($source)
57
    {
58
        $this->workDirectory = $source;
59
    }
60
61
    /**
62
     * @param string $source
63
     * @param string $destination
64
     * @param array $options
65
     *
66
     * @return string
67
     */
68
    public function process($source, $destination, $options = array())
69
    {
70
        // TODO: Implement process() method.
71
    }
72
}
73