Is there any way that i can call the $template in one line in the following code

lobzang
Member | 6
+
0
-
$template->customerName = $customer->getCustomerName();
$template->customerStreet = $customer->getCustomerStreet();
$template->customerCity = $customer->getCustomerCity();
jiri.pudil
Member | 879
+
+1
-