Пример #1
0
 /**
  * Constructor that can take a Room entity as first parameter and a RoomCollection as second parameter
  *
  * @param      Room            $room            A user entity object DEFAULT null
  * @param      RoomCollection  $roomCollection  A RoomCollection DEFAULT null
  */
 public function __construct(Room $room = null, RoomCollection $roomCollection = null)
 {
     parent::__construct();
     $this->room = $room;
     $this->roomCollection = $roomCollection;
 }
Пример #2
0
 /**
  * Constructor that can take a User entity as first parameter and a Collection as second parameter
  *
  * @param      User            $user            A user entity object DEFAULT null
  * @param      UserCollection  $userCollection  A users collection object DEFAULT null
  */
 public function __construct(User $user = null, UserCollection $userCollection = null)
 {
     parent::__construct();
     $this->user = $user;
     $this->userCollection = $userCollection;
 }