Example #1
0
 private function toObject($row)
 {
     $obj = new Plan();
     if (isset($row["plan_id"])) {
         $obj->setPlanId($row["plan_id"]);
     }
     if (isset($row["description"])) {
         $obj->setDescription($row["description"]);
     }
     if (isset($row["minutes"])) {
         $obj->setMinutes($row["minutes"]);
     }
     if (isset($row["fare_additional_min"])) {
         $obj->setFareAdditionalMin($row["fare_additional_min"]);
     }
     return $obj;
 }