Ward::getKomorkaOrg()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
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 3
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
/**
4
 * Ward
5
 *
6
 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
7
 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
8
 *
9
 * Permission is hereby granted to use or copy this program
10
 * for any purpose, provided the above notices are retained on all copies.
11
 * Permission to modify the code and to distribute modified code is granted,
12
 * provided the above notices are retained, and a notice that the code was
13
 * modified is included with the above copyright notice.
14
 *
15
 * @category  Wp
16
 * @package   Punction
17
 * @author    Andrzej Marcinkowski <[email protected]>
18
 * @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz
19
 * @license   MIT http://opensource.org/licenses/MIT
20
 * @version   1.0 $Format:%H$
21
 * @link      http://
22
 * @since     File available since Release 1.0.0
23
 * PHP Version 5
24
 */
25
namespace Hospitalplugin\Entities;
26
27
use Doctrine\Common\Collections\ArrayCollection;
28
29
/**
30
 * Ward
31
 *
32
 * @category Wp
33
 * @package Punction
34
 * @author Andrzej Marcinkowski <[email protected]>
35
 * @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz
36
 * @license MIT http://opensource.org/licenses/MIT
37
 * @version 1.0 $Format:%H$
38
 * @link http://
39
 * @since File available since Release 1.0.0
40
 *       
41
 *        @Entity
42
 *        @Table(name="hospital_ward",
43
 *        options={"collate"="utf8_polish_ci", "charset"="utf8", "engine"="MyISAM"},
44
 *        indexes={@index(name="name_idx", columns={"name"})})
45
 */
46
class Ward {
47
	
48
	/**
49
	 * id
50
	 * @Id @Column(type="integer") @GeneratedValue
51
	 */
52
	public $id;
53
	
54
	/**
55
	 * name
56
	 * @Column(type="string") *
57
	 */
58
	public $name;
59
	
60
	/**
61
	 * TODO dodac:
62
	 * konta: [{ id: '0', account: brak }]
63
	 * lokalizacje: [{ adres: 'Poznańska 79', kondygnacja: '0', odcinek: '' }]
64
	 */
65
	
66
	/**
67
	 * @Column(type="string") *
68
	 */
69
	protected $infomedica;
70
	
71
	/**
72
	 * @Column(type="string") *
73
	 */
74
	protected $komorkaOrg;
75
	
76
	/**
77
	 * @Column(type="string") *
78
	 */
79
	protected $kierownik;
80
	
81
	/**
82
	 * @Column(type="string") *
83
	 */
84
	protected $typOddzialu;
85
	
86
	/**
87
	 * @Column(type="integer") *
88
	 */
89
	protected $pododdzial;
90
	
91
	/**
92
	 * @Column(type="string") *
93
	 */
94
	protected $adres;
95
	
96
	/**
97
	 * @Column(type="string") *
98
	 */
99
	protected $kondygnacja;
100
	
101
	/**
102
	 * @Column(type="string") *
103
	 */
104
	protected $odcinek;
105
	
106
	/**
107
	 * @Column(type="string", length=5000) *
108
	 */
109
	protected $opis;
110
	
111
	/**
112
	 * @OneToMany(targetEntity="Hospitalplugin\Entities\User", mappedBy="ward")
113
	 */
114
	private $users;
115
	public function __construct() {
116
		$this->users = new ArrayCollection ();
117
	}
118
	
119
	/**
120
	 * toString
121
	 * 
122
	 * @return string
123
	 */
124
	public function __toString() {
125
		return $this->getName ();
126
	}
127
	public function getId() {
128
		return $this->id;
129
	}
130
	public function setId($id) {
131
		$this->id = $id;
132
		return $this;
133
	}
134
	public function getName() {
135
		return $this->name;
136
	}
137
	public function setName($name) {
138
		$this->name = $name;
139
		return $this;
140
	}
141
	public function getInfomedica() {
142
		return $this->infomedica;
143
	}
144
	public function setInfomedica($infomedica) {
145
		$this->infomedica = $infomedica;
146
		return $this;
147
	}
148
	public function getKomorkaOrg() {
149
		return $this->komorkaOrg;
150
	}
151
	public function setKomorkaOrg($komorkaOrg) {
152
		$this->komorkaOrg = $komorkaOrg;
153
		return $this;
154
	}
155
	public function getKierownik() {
156
		return $this->kierownik;
157
	}
158
	public function setKierownik($kierownik) {
159
		$this->kierownik = $kierownik;
160
		return $this;
161
	}
162
	public function getTypOddzialu() {
163
		return $this->typOddzialu;
164
	}
165
	public function setTypOddzialu($typOddzialu) {
166
		$this->typOddzialu = $typOddzialu;
167
		return $this;
168
	}
169
	public function getPododdzial() {
170
		return $this->pododdzial;
171
	}
172
	public function setPododdzial($pododdzial) {
173
		$this->pododdzial = $pododdzial;
174
		return $this;
175
	}
176
	public function getAdres() {
177
		return $this->adres;
178
	}
179
	public function setAdres($adres) {
180
		$this->adres = $adres;
181
		return $this;
182
	}
183
	public function getKondygnacja() {
184
		return $this->kondygnacja;
185
	}
186
	public function setKondygnacja($kondygnacja) {
187
		$this->kondygnacja = $kondygnacja;
188
		return $this;
189
	}
190
	public function getOdcinek() {
191
		return $this->odcinek;
192
	}
193
	public function setOdcinek($odcinek) {
194
		$this->odcinek = $odcinek;
195
		return $this;
196
	}
197
	public function getOpis() {
198
		return $this->opis;
199
	}
200
	public function setOpis($opis) {
201
		$this->opis = $opis;
202
		return $this;
203
	}
204
}
205
206
207