removed unused asset
[openemr.git] / entities / version.php
blob1e86214f215ae99b1a657b6a62b11e908f520733
1 <?php
2 /**
3 * Version entity.
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>;.
18 * @package OpenEMR
19 * @author Matthew Vita <matthewvita48@gmail.com>
20 * @link http://www.open-emr.org
23 namespace entities;
25 use Doctrine\ORM\Mapping\Entity;
26 use Doctrine\ORM\Mapping\Table;
27 use Doctrine\ORM\Mapping\Column;
28 use Doctrine\ORM\Mapping\Id;
30 /**
31 * @Table(name="version")
32 * @Entity(repositoryClass="repositories\VersionRepository")
34 class Version {
35 /**
36 * Default constructor.
38 public function __construct() {}
40 /**
41 * @Column(name="v_major", type="integer", length=11, nullable=false, options={"default" : 0})
43 private $major;
45 /**
46 * @Column(name="v_minor", type="integer", length=11, nullable=false, options={"default" : 0}))
48 private $minor;
50 /**
51 * @Column(name="v_patch", type="integer", length=11, nullable=false, options={"default" : 0}))
53 private $patch;
55 /**
56 * @Column(name="v_realpatch", type="integer", length=11, nullable=false, options={"default" : 0}))
58 private $realPatch;
60 /**
61 * @Column(name="v_tag", type="string", length=31, nullable=false, options={"default" : ""}))
63 private $tag;
65 /**
66 * @Id
67 * @Column(name="v_database", type="integer", length=11, nullable=false, options={"default" : 0}))
69 private $database;
71 /**
72 * @Column(name="v_acl", type="integer", length=11, nullable=false, options={"default" : 0}))
74 private $acl;
76 /**
77 * Getter for major.
79 * return major number
81 public function getMajor() {
82 return $this->major;
85 /**
86 * Setter for major.
88 * @param major number
90 public function setMajor($value) {
91 $this->major = $value;
94 /**
95 * Getter for minor.
97 * return minor number
99 public function getMinor() {
100 return $this->minor;
104 * Setter for minor.
106 * @param minor number
108 public function setMinor($value) {
109 $this->minor = $value;
113 * Getter for patch.
115 * @return patch number
117 public function getPatch() {
118 return $this->patch;
122 * Setter for patch.
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;
149 * Getter for tag.
151 * @return tag string
153 public function getTag() {
154 return $this->tag;
158 * Setter for tag.
160 * @param tag string
162 public function setTag($value) {
163 $this->tag = $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;
185 * Getter for acl.
187 * @return acl number
189 public function getAcl() {
190 return $this->acl;
194 * Setter for acl.
196 * @param acl number
198 public function setAcl($value) {
199 $this->acl = $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() . "'";