Fix missed or misspelled properties
This commit is contained in:
@@ -52,7 +52,7 @@ class Room
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $nigthts;
|
||||
public $nights;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
@@ -70,6 +70,8 @@ class Room
|
||||
$room->name = $array['roomName'];
|
||||
$room->price = $array['roomPrice'];
|
||||
$room->busprice = $array['busPrice'];
|
||||
$room->nights = $array['roomNights'];
|
||||
$room->available = $array['roomAvailable'];
|
||||
|
||||
foreach (unserialize($array['roomOptionalServices']) as $row)
|
||||
{
|
||||
|
||||
@@ -104,7 +104,7 @@ class ResellerService implements SingletonInterface
|
||||
$data[$row['dateStart']] = $date;
|
||||
}
|
||||
|
||||
$date->rooms[] = Room::fromArray($row);
|
||||
$date->rooms['room'][] = Room::fromArray($row);
|
||||
}
|
||||
|
||||
return array_values($data);
|
||||
|
||||
Reference in New Issue
Block a user