Beispiel #1
0
 private function toObject($row)
 {
     $obj = new Price();
     if (isset($row["from_ddd"])) {
         $obj->setFromDDD($row["from_ddd"]);
     }
     if (isset($row["to_ddd"])) {
         $obj->setToDDD($row["to_ddd"]);
     }
     if (isset($row["price_per_minute"])) {
         $obj->setPricePerMinute($row["price_per_minute"]);
     }
     return $obj;
 }