Passed
Push — master ( 517bd8...f7cc98 )
by Attila
06:55
created

Manifest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
dl 0
loc 39
rs 10
c 2
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getVersion() 0 3 1
A __construct() 0 4 1
A getName() 0 3 1
1
<?php
2
/**
3
 * Contains the Module Manifest class.
4
 *
5
 * @copyright   Copyright (c) 2016 Attila Fulop
6
 * @author      Attila Fulop
7
 * @license     MIT
8
 * @since       2016-08-14
9
 *
10
 */
11
12
13
namespace Konekt\Concord\Module;
14
15
class Manifest
16
{
17
    /** @var  string */
18
    protected $name;
19
20
    /** @var  string */
21
    protected $version;
22
23
24
    /**
25
     * Manifest constructor.
26
     *
27
     * @param string $name
28
     * @param string $version
29
     */
30
    public function __construct(string $name, string $version)
31
    {
32
        $this->name    = $name;
33
        $this->version = $version;
34
    }
35
36
    /**
37
     * Returns the module name
38
     *
39
     * @return string
40
     */
41
    public function getName()
42
    {
43
        return $this->name;
44
    }
45
46
    /**
47
     * Returns the module version
48
     *
49
     * @return string
50
     */
51
    public function getVersion()
52
    {
53
        return $this->version;
54
    }
55
}
56