How to build a class structure, when members are also structured hierarchically?
问题 I'm building a PHP web application, that should provide to the user a possiblity to order an "installation"/setup of a (ConnectDirect or File Transfer Gateway) connection between him and another person/organization. (The technical specifica of the connection implementation are not important -- in the application it's only about the connections as product, that can be ordered and managed.) The classes hierarchy for its model layer should represent following real-world infrastructure: There are