您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

26 行
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. }