boolean method in php
Posted: Mon Jun 22, 2009 6:39 am
Hey guys I am new to working on php code and I have a method in java which I need to rewrite into php can I please get some advise on how to write the following method in php
/**
* Sets whether the customer's billing address is same as shipping address for this
* transaction.
* @param isSameAddress true is same; false otherwise
* @modelguid {CA96EFC4-E064-4716-97F4-D6E41753F457}
*/
public void setBillingAddressSameAsShipping(boolean isSameAddress)
{
isBillingAddressSameAsShipping = isSameAddress;
}
I fully understand what the method is doing its just the different syntax in php as you cant write a method with public void or add boolean isSameAddress in php.
Thanks in advance for any help provided
Best Regards
Sean
/**
* Sets whether the customer's billing address is same as shipping address for this
* transaction.
* @param isSameAddress true is same; false otherwise
* @modelguid {CA96EFC4-E064-4716-97F4-D6E41753F457}
*/
public void setBillingAddressSameAsShipping(boolean isSameAddress)
{
isBillingAddressSameAsShipping = isSameAddress;
}
I fully understand what the method is doing its just the different syntax in php as you cant write a method with public void or add boolean isSameAddress in php.
Thanks in advance for any help provided
Best Regards
Sean