Ejemplo n.º 1
0
 public static function create($params)
 {
     $Seat = new Seat();
     $Seat->setSeatNumber($params['seatNumber']);
     $Seat->setXPos($params['xPos']);
     $Seat->setYPos($params['yPos']);
     $Seat->setFloor($params['floor']);
     $Seat->setIsAvailable($params['isAvailable']);
     $Seat->setHasTV($params['hasTV']);
     return $Seat;
 }
Ejemplo n.º 2
0
 public static function createDummySeat()
 {
     $seat = new Seat();
     $seat->setFloor(1);
     $seat->setSeatNumber(23);
     $seat->setXPos(7);
     $seat->setYPos(2);
     $seat->setIsAvailable(true);
     return $seat;
 }