-
Notifications
You must be signed in to change notification settings - Fork 0
/
CatManager.php
55 lines (49 loc) · 1.18 KB
/
CatManager.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
<?php
class CatManager
{
//creating instance variables for the Category Manager Object
private $id;
private $userName;
private $phone;
private $email;
private $date;
private $location;
public function __construct1()
{
//default constructor
}
public function __construct($id, $mn, $pn, $ea, $d, $l) //accessing the instance variables through the constructor
{
$this->id = $id;
$this->userName = $mn;
$this->phone = $pn;
$this->email = $ea;
$this->date = $d;
$this->location = $l;
}
//Making the get methods for each of the instance variables of the manager Object
public function getID()
{
return $this->id;
}
public function getUserName()
{
return $this->userName;
}
public function getPhone()
{
return $this->phone;
}
public function getEmail()
{
return $this->email;
}
public function getDate()
{
return $this->date;
}
public function getLocation()
{
return $this->location;
}
}