Hi,
I'm new to php oop. In our system when creating a new user, user's role can be assigned by selecting from the role dropdown list.
Here, there are two classes, one is user class, another is role class. and user class use role class which is composition relationship.
I have two methods (getUserByUid($uid) and getRoleByRid($rid)), and It's not reasonable to put these methods in user class and role class. My question is where should put these methods?
Anyone can help me?
many thanks