Completed
Push — 4.0 ( 954171...ed2d0a )
by Marco
13:55
created

Model::logger()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 2
nc 1
nop 0
1
<?php namespace Comodojo\Components\Model;
2
3
use \Monolog\Logger;
4
use \Comodojo\Components\Configuration;
5
6
/**
7
 *
8
 * @package     Comodojo dispatcher
9
 * @author      Marco Giovinazzi <[email protected]>
10
 * @license     GPL-3.0+
11
 *
12
 * LICENSE:
13
 *
14
 * This program is free software: you can redistribute it and/or modify
15
 * it under the terms of the GNU Affero General Public License as
16
 * published by the Free Software Foundation, either version 3 of the
17
 * License, or (at your option) any later version.
18
 *
19
 * This program is distributed in the hope that it will be useful,
20
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
 * GNU Affero General Public License for more details.
23
 *
24
 * You should have received a copy of the GNU Affero General Public License
25
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
26
 */
27
28
abstract class Model {
29
30
    private $configuration = null;
31
32
    private $logger = null;
33
34
    public function __construct(Configuration $configuration, Logger $logger) {
35
36
        $this->configuration = $configuration;
37
38
        $this->logger = $logger;
39
40
    }
41
42
    public function configuration() {
43
44
        return $this->configuration;
45
46
    }
47
48
    public function logger() {
49
50
        return $this->logger;
51
52
    }
53
54
}
55