You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 satır
645B

  1. <?php
  2. namespace common\logic\User\UserUserGroup;
  3. use common\logic\AbstractBuilder;
  4. use common\logic\AbstractService;
  5. use common\logic\BuilderInterface;
  6. use common\logic\User\UserUserGroup\UserUserGroup;
  7. class UserUserGroupBuilder extends AbstractBuilder implements BuilderInterface
  8. {
  9. public function instanciateUserUserGroup(): UserUserGroup
  10. {
  11. $userUserGroup = new UserUserGroup();
  12. return $userUserGroup;
  13. }
  14. public function createUserUserGroup(): UserUserGroup
  15. {
  16. $userUserGroup = $this->instanciateUserUserGroup();
  17. $this->saveCreate($userUserGroup);
  18. return $userUserGroup;
  19. }
  20. }