Ejemplo n.º 1
0
 public function addDeliveryInfo($lines)
 {
     // Getting pieces and date
     $arr = explode(' ', $lines[0]);
     $Delivery = new Delivery();
     $Delivery->addPiece($arr[0]);
     $Delivery->addDate($arr[2]);
     array_shift($lines);
     $Delivery->addAddress(implode("\n", $lines));
     $this->Deliveries[] = $Delivery;
 }