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

UserGroupBuilder.php 431B

1234567891011121314151617181920212223
  1. <?php
  2. namespace domain\User\UserGroup;
  3. use domain\_\AbstractBuilder;
  4. class UserGroupBuilder extends AbstractBuilder
  5. {
  6. public function instanciateUserGroup(): UserGroup
  7. {
  8. $userGroup = new UserGroup();
  9. return $userGroup;
  10. }
  11. public function createUserGroup(): UserGroup
  12. {
  13. $userGroup = $this->instanciateUserGroup();
  14. $this->create($userGroup);
  15. return $userGroup;
  16. }
  17. }