Completed
Push — develop ( 5bf394...6bbee1 )
by Tom
06:47
created

Module   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getName() 0 4 1
A getVersion() 0 4 1
1
<?php
2
/*
3
 * @author Tom Klingenberg <https://github.com/ktomk>
4
 */
5
6
namespace N98\Magento\Api;
7
8
class Module implements ModuleInterface
9
{
10
    private $name;
11
12
    private $version;
13
14
    /**
15
     * Module constructor.
16
     *
17
     * @param string $name
18
     * @param string $version
19
     */
20
    public function __construct($name, $version)
21
    {
22
        $this->name = $name;
23
        $this->version = $version;
24
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function getName()
30
    {
31
        return $this->name;
32
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37
    public function getVersion()
38
    {
39
        return $this->version;
40
    }
41
}
42