Completed
Push — master ( 852c67...0a8133 )
by Craig
07:11
created

ExtensionDependencyEntity::getReason()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 4
rs 10
1
<?php
2
3
/*
4
 * This file is part of the Zikula package.
5
 *
6
 * Copyright Zikula Foundation - http://zikula.org/
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zikula\ExtensionsModule\Entity;
13
14
use Doctrine\ORM\Mapping as ORM;
15
use Zikula\Core\Doctrine\EntityAccess;
16
17
/**
18
 * Extension dependencies.
19
 *
20
 * @ORM\Entity(repositoryClass="Zikula\ExtensionsModule\Entity\Repository\ExtensionDependencyRepository")
21
 * @ORM\Table(name="module_deps")
22
 */
23
class ExtensionDependencyEntity extends EntityAccess
24
{
25
    /**
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     * @ORM\Column(type="integer")
29
     * @var integer
30
     */
31
    private $id;
32
33
    /**
34
     * @ORM\Column(type="integer")
35
     * @var integer
36
     */
37
    private $modid;
38
39
    /**
40
     * @ORM\Column(type="string", length=64)
41
     * @var string
42
     */
43
    private $modname;
44
45
    /**
46
     * @ORM\Column(type="string", length=10)
47
     * @var string
48
     */
49
    private $minversion;
50
51
    /**
52
     * @ORM\Column(type="string", length=10)
53
     * @var string
54
     */
55
    private $maxversion;
56
57
    /**
58
     * @ORM\Column(type="integer", length=64)
59
     * @var integer
60
     */
61
    private $status;
62
63
    /**
64
     * Non-persisted data
65
     * The reason of a dependency is not saved into the database to avoid multilingual problems but loaded from Version.php.
66
     * @var string
67
     */
68
    private $reason = false;
69
70
    public function getId()
71
    {
72
        return $this->id;
73
    }
74
75
    public function setId($id)
76
    {
77
        $this->id = $id;
78
    }
79
80
    public function getModid()
81
    {
82
        return $this->modid;
83
    }
84
85
    public function setModid($modid)
86
    {
87
        $this->modid = $modid;
88
    }
89
90
    public function getModname()
91
    {
92
        return $this->modname;
93
    }
94
95
    public function setModname($modname)
96
    {
97
        $this->modname = $modname;
98
    }
99
100
    public function getMinversion()
101
    {
102
        return $this->minversion;
103
    }
104
105
    public function setMinversion($minversion)
106
    {
107
        $this->minversion = $minversion;
108
    }
109
110
    public function getMaxversion()
111
    {
112
        return $this->maxversion;
113
    }
114
115
    public function setMaxversion($maxversion)
116
    {
117
        $this->maxversion = $maxversion;
118
    }
119
120
    public function getStatus()
121
    {
122
        return $this->status;
123
    }
124
125
    public function setStatus($status)
126
    {
127
        $this->status = $status;
128
    }
129
130
    /**
131
     * Non-persisted data.
132
     *
133
     * Note: The reason of a dependency is not saved into the database to avoid multilingual problems but loaded from Version.php.
134
     */
135
    public function setReason($reason)
136
    {
137
        $this->reason = $reason;
138
    }
139
140
    /**
141
     * Get the reason for a dependency.
142
     *
143
     * Note: The reason of a dependency is not saved into the database to avoid multilingual problems but loaded from Version.php.
144
     */
145
    public function getReason()
146
    {
147
        return $this->reason;
148
    }
149
}
150