menu fix for patient menu (#1582)
[openemr.git] / entities / Version.php
bloba777e64760c77ea62d13d05241aecea89cb046f8
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 OpenEMR\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="OpenEMR\Repositories\VersionRepository")
34 class Version
36 /**
37 * Default constructor.
39 public function __construct()
43 /**
44 * @Column(name="v_major", type="integer", length=11, nullable=false, options={"default" : 0})
46 private $major;
48 /**
49 * @Column(name="v_minor", type="integer", length=11, nullable=false, options={"default" : 0}))
51 private $minor;
53 /**
54 * @Column(name="v_patch", type="integer", length=11, nullable=false, options={"default" : 0}))
56 private $patch;
58 /**
59 * @Column(name="v_realpatch", type="integer", length=11, nullable=false, options={"default" : 0}))
61 private $realPatch;
63 /**
64 * @Column(name="v_tag", type="string", length=31, nullable=false, options={"default" : ""}))
66 private $tag;
68 /**
69 * @Id
70 * @Column(name="v_database", type="integer", length=11, nullable=false, options={"default" : 0}))
72 private $database;
74 /**
75 * @Column(name="v_acl", type="integer", length=11, nullable=false, options={"default" : 0}))
77 private $acl;
79 /**
80 * Getter for major.
82 * return major number
84 public function getMajor()
86 return $this->major;
89 /**
90 * Setter for major.
92 * @param major number
94 public function setMajor($value)
96 $this->major = $value;
99 /**
100 * Getter for minor.
102 * return minor number
104 public function getMinor()
106 return $this->minor;
110 * Setter for minor.
112 * @param minor number
114 public function setMinor($value)
116 $this->minor = $value;
120 * Getter for patch.
122 * @return patch number
124 public function getPatch()
126 return $this->patch;
130 * Setter for patch.
132 * @param patch number
134 public function setPatch($value)
136 $this->patch = $value;
140 * Getter for real patch.
142 * @return real patch number
144 public function getRealPatch()
146 return $this->realPatch;
150 * Setter for real patch.
152 * @param real patch number
154 public function setRealPatch($value)
156 $this->realPatch = $value;
160 * Getter for tag.
162 * @return tag string
164 public function getTag()
166 return $this->tag;
170 * Setter for tag.
172 * @param tag string
174 public function setTag($value)
176 $this->tag = $value;
180 * Getter for database.
182 * @return database number
184 public function getDatabase()
186 return $this->database;
190 * Setter for database.
192 * @param database number
194 public function setDatabase($value)
196 $this->database = $value;
200 * Getter for acl.
202 * @return acl number
204 public function getAcl()
206 return $this->acl;
210 * Setter for acl.
212 * @param acl number
214 public function setAcl($value)
216 $this->acl = $value;
220 * ToString of the entire object.
222 * @return object as string
224 public function __toString()
226 return "acl: '" . $this->getAcl() . "' " .
227 "database: '" . $this->getDatabase() . "' " .
228 "tag: '" . $this->getTag() . "' " .
229 "realPatch: '" . $this->getRealPatch() . "' " .
230 "patch: '" . $this->getPatch() . "' " .
231 "minor: '" . $this->getMinor() . "' " .
232 "major: '" . $this->getMajor() . "'";
236 * ToSerializedObject of the entire object.
238 * @return object as serialized object.
240 public function toSerializedObject()
242 return get_object_vars($this);