What does
$shipping_modules = new shipping($shipping);
mean?
I know its silly but pls help...
What does
$shipping_modules = new shipping($shipping);
mean?
I know its silly but pls help...
...
$shipping_modules = new shipping($shipping);
The new instance of class shipping is assigned to variable $shipping_modules there by allowing you to access class methods/properties. Finally, $shipping variable is passed to the constructor of shipping class.
$shipping_modules = new shipping($shipping);
1 2 3 4
where:
shipping class to $shipping_modules variablenew operator to create instance of the classshipping$shipping passed to constructor of the class.It means: