/Users/johnr/Desktop/IA pdf Downloads/_New Projects Downloads May 7th/CS_IA_Mattew/DayPlan.class.php
 1 <?php
 2 class DayPlan{
 3     private $golfCourse;
 4     private $teeTime;
 5     private $caddie;
 6     private $cart;
 7     private $hotel;
 8     private $hotelBreakfast;
 9     private $transportation;
10     public function __construct($golfCourse, $teeTime, $caddie, $cart, $hotel, $hotelBreakfast, $transportation){
11         $this->golfCourse = $golfCourse;
12         $this->teeTime = $teeTime;
13         $this->caddie = $caddie;
14         $this->cart = $cart;
15         $this->hotel = $hotel;
16         $this->hotelBreakfast = $hotelBreakfast;
17         $this->transportation = $transportation;
18     }
19 
20     public function getGolfCourse(){
21         if(isset($this->golfCourse)){
22             return $this->golfCourse;
23         }
24     }
25     public function getTeeTime(){
26         if(isset($this->teeTime)){
27             return $this->teeTime;
28         }
29     }
30     public function getCaddie(){
31         if(isset($this->caddie)){
32             return $this->caddie;
33         }
34     }
35     public function getCart(){
36         if(isset($this->cart)){
37             return $this->cart;
38         }
39     }
40     public function getHotel(){
41         if(isset($this->hotel)){
42             return $this->hotel;
43         }
44     }
45     public function getHotelBreakfast(){
46         if(isset($this->hotelBreakfast)){
47             return $this->hotelBreakfast;
48         }
49     }
50     public function getTransportation(){
51         if(isset($this->transportation)){
52             return $this->transportation;
53         }
54     }
55 
56 }