I’m working on a PHP Class, one of the required fields for the Class is (DropoffType)
The answer to that is REGULARPICKUP.
Can I write this inside the class and put “=” to the REGULARPICKUP?
Example:
protected $DropoffType = 'REGULARPICKUP';
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure you can
or do it in the constructor (this depends on your specific case whether this is the way to go):
Or if you have a set function: