5 * Copyright (C) 2016 Matthew Vita <matthewvita48@gmail.com>
7 * LICENSE: This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
19 * @author Matthew Vita <matthewvita48@gmail.com>
20 * @link http://www.open-emr.org
25 use Doctrine\ORM\Mapping\Entity
;
26 use Doctrine\ORM\Mapping\Table
;
27 use Doctrine\ORM\Mapping\Column
;
28 use Doctrine\ORM\Mapping\Id
;
31 * @Table(name="version")
32 * @Entity(repositoryClass="repositories\VersionRepository")
36 * Default constructor.
38 public function __construct() {}
41 * @Column(name="v_major", type="integer", length=11, nullable=false, options={"default" : 0})
46 * @Column(name="v_minor", type="integer", length=11, nullable=false, options={"default" : 0}))
51 * @Column(name="v_patch", type="integer", length=11, nullable=false, options={"default" : 0}))
56 * @Column(name="v_realpatch", type="integer", length=11, nullable=false, options={"default" : 0}))
61 * @Column(name="v_tag", type="string", length=31, nullable=false, options={"default" : ""}))
67 * @Column(name="v_database", type="integer", length=11, nullable=false, options={"default" : 0}))
72 * @Column(name="v_acl", type="integer", length=11, nullable=false, options={"default" : 0}))
81 public function getMajor() {
90 public function setMajor($value) {
91 $this->major
= $value;
99 public function getMinor() {
106 * @param minor number
108 public function setMinor($value) {
109 $this->minor
= $value;
115 * @return patch number
117 public function getPatch() {
124 * @param patch number
126 public function setPatch($value) {
127 $this->patch
= $value;
131 * Getter for real patch.
133 * @return real patch number
135 public function getRealPatch() {
136 return $this->realPatch
;
140 * Setter for real patch.
142 * @param real patch number
144 public function setRealPatch($value) {
145 $this->realPatch
= $value;
153 public function getTag() {
162 public function setTag($value) {
167 * Getter for database.
169 * @return database number
171 public function getDatabase() {
172 return $this->database
;
176 * Setter for database.
178 * @param database number
180 public function setDatabase($value) {
181 $this->database
= $value;
189 public function getAcl() {
198 public function setAcl($value) {
203 * ToString of the entire object.
205 * @return object as string
207 public function __toString() {
208 return "acl: '" . $this->getAcl() . "' " .
209 "database: '" . $this->getDatabase() . "' " .
210 "tag: '" . $this->getTag() . "' " .
211 "realPatch: '" . $this->getRealPatch() . "' " .
212 "patch: '" . $this->getPatch() . "' " .
213 "minor: '" . $this->getMinor() . "' " .
214 "major: '" . $this->getMajor() . "'";