Completed
Push — master ( 530ce9...1b2ae5 )
by Paweł
23:42 queued 20:31
created

Version::getReleaseDate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of the Superdesk Web Publisher Web Renderer Bundle.
5
 *
6
 * Copyright 2015 Sourcefabric z.u. and contributors.
7
 *
8
 * For the full copyright and license information, please see the
9
 * AUTHORS and LICENSE files distributed with this source code.
10
 *
11
 * @copyright 2015 Sourcefabric z.ú.
12
 * @license http://www.superdesk.org/license
13
 */
14
namespace SWP\Bundle\WebRendererBundle\Version;
15
16
use SWP\UpdaterBundle\Version\VersionInterface;
17
18
/**
19
 * Application version class.
20
 */
21
final class Version implements VersionInterface
22
{
23
    /**
24
     * Version string.
25
     *
26
     * @var string
27
     */
28
    protected $version = '0.1.0';
29
30
    /**
31
     * Code name string.
32
     *
33
     * @var string
34
     */
35
    protected $codeName = 'N/A';
36
37
    /**
38
     * Release date string.
39
     *
40
     * @var string
41
     */
42
    protected $releaseDate = '2015-09-01';
43
44
    /**
45
     * {@inheritdoc}
46
     */
47
    public function getVersion()
48
    {
49
        return $this->version;
50
    }
51
52
    /**
53
     * {@inheritdoc}
54
     */
55
    public function setVersion($version)
56
    {
57
        $this->version = $version;
58
59
        return $this;
60
    }
61
62
    /**
63
     * Gets the Code name string.
64
     *
65
     * @return string
66
     */
67
    public function getCodeName()
68
    {
69
        return $this->codeName;
70
    }
71
72
    /**
73
     * Sets the Code name string.
74
     *
75
     * @param string $codeName the code name
76
     *
77
     * @return self
78
     */
79
    public function setCodeName($codeName)
80
    {
81
        $this->codeName = $codeName;
82
83
        return $this;
84
    }
85
86
    /**
87
     * Gets the Release date string.
88
     *
89
     * @return string
90
     */
91
    public function getReleaseDate()
92
    {
93
        return $this->releaseDate;
94
    }
95
96
    /**
97
     * Sets the Release date string.
98
     *
99
     * @param string $releaseDate the release date
100
     *
101
     * @return self
102
     */
103
    public function setReleaseDate($releaseDate)
104
    {
105
        $this->releaseDate = $releaseDate;
106
107
        return $this;
108
    }
109
}
110