/**
  * @param array $rows
  * @return SeatMap
  */
 public static function create(array $rows)
 {
     $seatMap = new SeatMap();
     foreach ($rows as $row) {
         $seatMap->append(self::createRow($row["_seat"]));
     }
     return $seatMap;
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function test_append_an_invalid_row_instance_should_rainse_an_exception()
 {
     $seatMap = new SeatMap();
     $row = new \stdClass();
     $seatMap->append($row);
 }