I've realized that there's no downcasting in php5. Is there a common pattern to achieve it?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
You could set the derived class to take a BaseClass object as a parameter in the constructor, and then copy the properties from that: