Completed
Push — 2.0 ( 14c778...b5ef61 )
by Marco
11:18
created

Worklog   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
A create() 0 3 1
A close() 0 3 1
1
<?php namespace Comodojo\Extender\Tasks;
2
3
use \Comodojo\Dispatcher\Components\Configuration;
4
use \Psr\Log\LoggerInterface;
5
6
/**
7
 * Task object
8
 *
9
 * @package     Comodojo extender
10
 * @author      Marco Giovinazzi <[email protected]>
11
 * @license     GPL-3.0+
12
 *
13
 * LICENSE:
14
 * 
15
 * This program is free software: you can redistribute it and/or modify
16
 * it under the terms of the GNU Affero General Public License as
17
 * published by the Free Software Foundation, either version 3 of the
18
 * License, or (at your option) any later version.
19
 *
20
 * This program is distributed in the hope that it will be useful,
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23
 * GNU Affero General Public License for more details.
24
 *
25
 * You should have received a copy of the GNU Affero General Public License
26
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
27
 */
28
29
class Worklog {
30
    
31
    private $configuration;
32
    private $logger;
33
34
    public function __construct(
35
        Configuration $configuration,
36
        LoggerInterface $logger
37
    ) {
38
        
39
        // Setup task
40
        $this->configuration = $configuration;
41
        $this->logger = $logger;
42
43
    }
44
    
45
    public function create() {
46
        
47
    }
48
    
49
    public function close() {
50
        
51
    }
52
    
53
}