Fix missed or misspelled properties

This commit is contained in:
Björn Fromme
2018-06-26 17:30:20 +02:00
parent df068ce559
commit 8b62ef9e61
2 changed files with 4 additions and 2 deletions
@@ -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);