-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCertificate.php
71 lines (70 loc) · 1.54 KB
/
Certificate.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* Class containing information about certificate.
*
*/
class Certificate{
private $id;
private $certificateNumber;
private $buildingNumber;
private $vin;
private $expireDate;
private $symbol;
public function __construct($row = null) {
if ($row!=null) {
$this->assignDbValues($row);
}
}
private function assignDbValues($row) {
$this->id = $row['id'];
$this->certificateNumber = $row['certificate_number'];
$this->buildingNumber = $row['building_number'];
$this->vin = $row['vin'];
$this->expireDate = $row['expire_date'];
$this->symbol = $row['symbol'];
}
public function getId(){
return $this->id;
}
public function getCertificateNumber(){
return $this->certificateNumber;
}
public function setCertificateNumber($val){
$this->certificateNumber=$val;
}
public function getBuildingNumber(){
return $this->buildingNumber;
}
public function setBuildingNumber($val){
if ($val!=null) {
$val = trim($val);
if ($val!="" && $val!="-" && $val!="--") {
$this->buildingNumber=$val;
}
}
}
public function getVin(){
return $this->vin;
}
public function setVin($val){
if ($val!=null) {
$val = trim($val);
if ($val!="" && $val!="-" && $val!="--") {
$this->vin=$val;
}
}
}
public function getExpireDate(){
return $this->expireDate;
}
public function setExpireDate($val){
$this->expireDate = $val;
}
public function getSymbol(){
return $this->symbol;
}
public function setSymbol($val){
$this->symbol = $val;
}
}
?>